-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Franco Cipollone <[email protected]>
- Loading branch information
1 parent
0dc6248
commit 4788d6f
Showing
2 changed files
with
82 additions
and
0 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,76 @@ | ||
# .flake8 | ||
# | ||
# DESCRIPTION | ||
# Configuration file for the python linter flake8. | ||
# | ||
[flake8] | ||
|
||
################### PROGRAM ################################ | ||
|
||
# Specify the number of subprocesses that Flake8 will use to run checks in parallel. | ||
jobs = auto | ||
|
||
|
||
################### OUTPUT ################################# | ||
|
||
########## FORMATTING ########## | ||
|
||
# Select the formatter used to display errors to the user. | ||
format = pylint | ||
# Print the total number of errors. | ||
count = True | ||
# Print the source code generating the error/warning in question. | ||
show-source = True | ||
# Count the number of occurrences of each error/warning code and print a report. | ||
statistics = False | ||
|
||
################### FILE PATTERNS ########################## | ||
|
||
# Provide a comma-separated list of glob patterns to exclude from checks. | ||
exclude = | ||
|
||
# Provide a comma-separate list of glob patterns to include for checks. | ||
filename = | ||
*.py | ||
|
||
|
||
################### LINTING ################################ | ||
|
||
########## ENVIRONMENT ########## | ||
|
||
# Provide a custom list of builtin functions, objects, names, etc. | ||
builtins = | ||
|
||
|
||
########## OPTIONS ########## | ||
|
||
# Set the maximum length that any line (with some exceptions) may be. | ||
max-line-length = 120 | ||
# Set the maximum allowed McCabe complexity value for a block of code. | ||
max-complexity = 10 | ||
# Toggle whether pycodestyle should enforce matching the indentation of the opening bracket’s line. | ||
# incluences E131 and E133 | ||
hang-closing = True | ||
|
||
|
||
########## RULES ########## | ||
|
||
# ERROR CODES | ||
# | ||
# E/W - PEP8 errors/warnings (pycodestyle) | ||
# F - linting errors (pyflakes) | ||
# C - McCabe complexity error (mccabe) | ||
# | ||
# E133 - Closing bracket is missing indentation. | ||
# E226 - Missing whitespace around arithmetic operator. | ||
|
||
# Specify a list of codes to ignore. | ||
ignore = | ||
E133, | ||
E226, | ||
# Specify the list of error codes you wish Flake8 to report. | ||
select = | ||
E, | ||
W, | ||
F, | ||
C |
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