Skip to content

Commit

Permalink
Merge pull request #315 from r4lv/patch-flake8
Browse files Browse the repository at this point in the history
DEV: linter configurations for PEP8
  • Loading branch information
VChristiaens authored Mar 29, 2022
2 parents 763520a + dfd92d6 commit 275ba2d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[flake8]
max-line-length = 80
ignore =
;====== flake8 defaults ======
; continuation line under-indented for hanging indent:
E121,
; closing bracket does not match indentation of opening bracket's line:
E123,
; continuation line over-indented for hanging indent:
E126,
; missing whitespace around arithmetic operator:
E226,
; multiple spaces after ',' / tab after ',':
; E24,
; multiple statements on one line (def):
; E704,
; line break before binary operator:
W503,
; line break after binary operator:
W504,

;====== VIP ======
; One-line docstring should fit on one line with quotes:
D200,
; Missing docstring in public function:
D103,
; 1 blank line required between summary line and description
D205,
; First line should end with a period
D400,

;====== flake8 plugins ======
; Use of assert detected. (bandit plugin)
S101,
; no configuration found (.isort.cfg or [isort] in configs) (isort plugin)
I002,
7 changes: 5 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
sphinx
pandoc
pytest
pytest-cov
codecov
pytest-cov ~=2.6.0
codecov ~=2.0.15
flake8 ~= 3.5.0
flake8-bandit ~= 1.0.2
flake8-docstrings ~= 1.3.0

0 comments on commit 275ba2d

Please sign in to comment.