Skip to content

Commit 379abd4

Browse files
committed
Add flake8 and configuration to pre-commit review
Disclaimer: Participation by NIST in the creation of the documentation of mentioned software is not intended to imply a recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that any specific software is necessarily the best available for the purpose. Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 645938f commit 379abd4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ repos:
33
rev: 22.3.0
44
hooks:
55
- id: black
6+
- repo: https://github.com/pycqa/flake8
7+
rev: 4.0.1
8+
hooks:
9+
- id: flake8
610
- repo: https://github.com/pycqa/isort
711
rev: 5.10.1
812
hooks:

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ console_scripts =
3838
case_utils = py.typed
3939
case_utils.ontology = *.ttl
4040

41+
[flake8]
42+
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
43+
extend-ignore =
44+
E203
45+
E501
46+
4147
[isort]
4248
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html
4349
profile = black

0 commit comments

Comments
 (0)