Skip to content

Commit dadbc0f

Browse files
committed
review actions
1 parent a5b9f17 commit dadbc0f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ repos:
2020
rev: "21.6b0"
2121
hooks:
2222
- id: black
23-
# Force black to run on whole repo, using settings from pyproject.toml
2423
pass_filenames: false
2524
args: ["--config=./pyproject.toml", "--check", "docs", "lib", "noxfile.py", "setup.py"]
2625
- repo: https://github.com/PyCQA/flake8
2726
rev: "3.9.2"
2827
hooks:
2928
- id: flake8
30-
args: ["--config=./setup.cfg"]
29+
args: ["--config=./setup.cfg", "docs", "lib", "noxfile.py", "setup.py"]
3130
- repo: https://github.com/pycqa/isort
3231
rev: "5.9.1"
3332
hooks:
3433
- id: isort
34+
# Use settings from pyproject.toml
3535
name: isort
3636
args: ["--filter-files", "--check"]
3737
- repo: https://github.com/asottile/blacken-docs

noxfile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ def lint(session: nox.sessions.Session):
169169
# Pip install the session requirements.
170170
session.install("pre-commit")
171171
# Execute the pre-commit linting tasks.
172-
session.run("pre-commit", "run", "--all-files")
172+
cmd = ["pre-commit", "run", "--all-files"]
173+
hooks = ["black", "blacken-docs", "flake8", "isort"]
174+
for hook in hooks:
175+
session.run(*cmd, hook)
173176

174177

175178
@nox.session(python=PY_VER, venv_backend="conda")

0 commit comments

Comments
 (0)