lefthook install

This commit is contained in:
Dmitry Afanasyev 2022-08-13 17:03:57 +03:00
parent 5c7dd37a44
commit bf2e7c626f
2 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,9 @@ def download_gecko_driver() -> None:
if not Path(BASE_DIR / 'geckodriver').exists():
logger.info(f'Downloading gecodriver v {GECKO_DRIVER_VERSION}...')
geckodriver_file = wget.download(url=gecko_driver, out=BASE_DIR.resolve().as_posix())
geckodriver_file = wget.download(
url=gecko_driver, out=BASE_DIR.resolve().as_posix()
)
with tarfile.open(geckodriver_file) as tar:
tar.extractall(BASE_DIR)

View File

@ -20,7 +20,7 @@ pre-push:
run: isort --check-only {all_files}
black:
glob: "*.py"
run: black --check {all_files}
run: black --check -S {all_files}
mypy:
glob: "*.py"
run: mypy {all_files} --namespace-packages
@ -41,10 +41,10 @@ format:
run: isort --color --quiet {staged_files}
3_black:
glob: "*.py"
run: black {staged_files}
run: black -S {staged_files}
4_black_check:
glob: "*.py"
run: black --check {staged_files}
run: black --check -S {staged_files}
lint:
parallel: true
@ -64,4 +64,4 @@ check-format:
run: isort --check-only {staged_files}
black:
glob: "*.py"
run: black --check {staged_files}
run: black --check -S {staged_files}