-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move flake8 configuration to its own file and activate some plugins
- Loading branch information
Sylvain Thénault
committed
Dec 3, 2020
1 parent
20a70f4
commit 557180f
Showing
4 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[flake8] | ||
#format = pylint | ||
ignore = | ||
A003, # attribute overriding builtin name | ||
B006, # [bugbear] Do not use mutable data structures for argument defaults (I choose by myself) | ||
E123, # closing bracket does not match indentation of opening bracket's line (disagree with emacs python mode) | ||
E126, # continuation line over-indented for hanging indent line (disagree with emacs python mode) | ||
E226, # missing whitespace around arithmetic operator (disagree when in parameter) | ||
P101, # [string-format] format string does contain unindexed parameters (don't care of py2.6) | ||
P103, # [string-format] other string does contain unindexed parameters | ||
P102, # [string-format] docstring does contain unindexed parameters | ||
W503, # Line break occurred before a binary operator (to keep operators aligned) | ||
|
||
max-line-length = 80 | ||
exclude = doc/*,.tox/*,.eggs,test/data | ||
#import-order-style = google | ||
#application-import-names=lowatt_core | ||
rst-roles = | ||
class, | ||
envvar, | ||
func, | ||
meth, | ||
ref, | ||
rst-directives = | ||
autoattribute, | ||
autoclass, | ||
autofunction, | ||
automethod, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include .flake8 | ||
include requirements.txt | ||
include pytest.ini | ||
include tox.ini | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters