Skip to content

Commit

Permalink
Add pre-commit hook for flake8 (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Oct 20, 2023
1 parent e19ebd7 commit 08c0397
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
args: ["--profile", "black", --trailing-comma, --line-length=125]

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-isort, flake8-tidy-imports]
Expand All @@ -33,3 +33,10 @@ repos:
- id: python-bandit-vulnerability-check
args: [ -lll, --recursive, -c, bandit.yaml, .]
files: .py$

- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system

0 comments on commit 08c0397

Please sign in to comment.