Skip to content

Commit

Permalink
feat: Add precommit to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Nov 13, 2024
1 parent f69de1e commit fa55c13
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies:
[
flake8-black,
flake8-bugbear,
flake8-docstrings,
flake8-isort,
flake8-quotes,
pep8-naming,
]
args: ["--ignore=E123,E203,W503,D10"]
exclude: "sample_data"
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
'django-s3-file-field[minio]==1.0.1',
'ipython==8.26.0',
'tox==4.16.0',
'precommit==4.0.1',
],
'test': [
'factory-boy==3.3.1',
Expand Down

0 comments on commit fa55c13

Please sign in to comment.