Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
rev: ""
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
additional_dependencies: [flake8-docstrings, flake8-isort]
- repo: local
hooks:
- id: test
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"pre-commit",
"black",
"flake8",
"flake8-docstrings",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how flake8-docstrings has been configured above without this dev dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so pre-commit's libraries / dependencies are separate from pip. So in the pre-commit config above, the repo field lists the place where pre-commit would pull the code from and it handles how it packages / manages versions of libraries which do checks.

If we want python / python to be the only thing that handles dependencies we could make these checks run against the local repository. We would move the checks under the repo: local grouping.

"flake8-black",
"flake8-isort",
"gitchangelog",
Expand Down