Skip to content

Commit

Permalink
Add pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jul 29, 2022
1 parent b8d23e0 commit a822adf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .isort.cfg

This file was deleted.

14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pycqa/isort
rev: '5.10.1'
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: 'v1.6.0'
hooks:
- id: autopep8
- repo: https://github.com/pycqa/flake8
rev: '3.9.2'
hooks:
- id: flake8
exclude: ^.*/migrations/.*$
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 140
exclude = .git,__pycache__,build,dist,migrations,testing

[isort]
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

0 comments on commit a822adf

Please sign in to comment.