Skip to content

Commit

Permalink
Add flake8 to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyizheng02 committed May 23, 2024
1 parent 33fe961 commit dd3c131
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 348 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ repos:
- id: trailing-whitespace
- id: check-yaml

# https://flake8.pycqa.org/en/latest/user/using-hooks.html
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

# https://black.readthedocs.io/en/stable/integrations/source_version_control.html
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pre-commit = "*"
pytest = "*"
pytest-cov = "==4.1.0"
pytest-xdist = "*"
flake8 = "*"

[dev-packages]

Expand Down
Loading

0 comments on commit dd3c131

Please sign in to comment.