Skip to content

Commit

Permalink
feat(#37): Add linter and pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
ezegonmac committed Dec 13, 2022
1 parent b10bb45 commit 55e3af9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[flake8]
max-line-length = 88
select = C,E,F,W,B,B950
extend-ignore =
E302,
E203,
E501,
F403, ; Import * used
F405, ; X may be undefined, or defined from * imports
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
*/migrations/*,
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
files: \.(py)$
exclude: ^migrations/
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ coverage==4.5.2
locust
Pillow==9.3.0
webdriver_manager
python-decouple
python-decouple
flake8==6.0.0
pre-commit==2.20.0

0 comments on commit 55e3af9

Please sign in to comment.