mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
lefthook install
This commit is contained in:
parent
5c7dd37a44
commit
bf2e7c626f
@ -21,7 +21,9 @@ def download_gecko_driver() -> None:
|
|||||||
|
|
||||||
if not Path(BASE_DIR / 'geckodriver').exists():
|
if not Path(BASE_DIR / 'geckodriver').exists():
|
||||||
logger.info(f'Downloading gecodriver v {GECKO_DRIVER_VERSION}...')
|
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:
|
with tarfile.open(geckodriver_file) as tar:
|
||||||
tar.extractall(BASE_DIR)
|
tar.extractall(BASE_DIR)
|
||||||
|
@ -20,7 +20,7 @@ pre-push:
|
|||||||
run: isort --check-only {all_files}
|
run: isort --check-only {all_files}
|
||||||
black:
|
black:
|
||||||
glob: "*.py"
|
glob: "*.py"
|
||||||
run: black --check {all_files}
|
run: black --check -S {all_files}
|
||||||
mypy:
|
mypy:
|
||||||
glob: "*.py"
|
glob: "*.py"
|
||||||
run: mypy {all_files} --namespace-packages
|
run: mypy {all_files} --namespace-packages
|
||||||
@ -41,10 +41,10 @@ format:
|
|||||||
run: isort --color --quiet {staged_files}
|
run: isort --color --quiet {staged_files}
|
||||||
3_black:
|
3_black:
|
||||||
glob: "*.py"
|
glob: "*.py"
|
||||||
run: black {staged_files}
|
run: black -S {staged_files}
|
||||||
4_black_check:
|
4_black_check:
|
||||||
glob: "*.py"
|
glob: "*.py"
|
||||||
run: black --check {staged_files}
|
run: black --check -S {staged_files}
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
parallel: true
|
parallel: true
|
||||||
@ -64,4 +64,4 @@ check-format:
|
|||||||
run: isort --check-only {staged_files}
|
run: isort --check-only {staged_files}
|
||||||
black:
|
black:
|
||||||
glob: "*.py"
|
glob: "*.py"
|
||||||
run: black --check {staged_files}
|
run: black --check -S {staged_files}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user