mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Apply black
This commit is contained in:
parent
cfb64b642f
commit
586ec7a8bc
40 changed files with 6135 additions and 4929 deletions
8
tasks.py
8
tasks.py
|
|
@ -16,9 +16,7 @@ VENV_BIN = Path(VENV) / Path(BIN_DIR)
|
|||
|
||||
TOOLS = ["poetry", "pre-commit", "psutil"]
|
||||
POETRY = which("poetry") if which("poetry") else (VENV_BIN / "poetry")
|
||||
PRECOMMIT = (
|
||||
which("pre-commit") if which("pre-commit") else (VENV_BIN / "pre-commit")
|
||||
)
|
||||
PRECOMMIT = which("pre-commit") if which("pre-commit") else (VENV_BIN / "pre-commit")
|
||||
|
||||
|
||||
@task
|
||||
|
|
@ -64,9 +62,7 @@ def isort(c, check=False, diff=False):
|
|||
check_flag = "-c"
|
||||
if diff:
|
||||
diff_flag = "--diff"
|
||||
c.run(
|
||||
f"{VENV_BIN}/isort {check_flag} {diff_flag} ."
|
||||
)
|
||||
c.run(f"{VENV_BIN}/isort {check_flag} {diff_flag} .")
|
||||
|
||||
|
||||
@task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue