-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply pylint and isort, and add a "quality" build
- Loading branch information
Showing
16 changed files
with
164 additions
and
27 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,16 @@ | ||
[isort] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
line_length=88 | ||
lines_after_imports = 2 | ||
force_single_line = true | ||
force_sort_within_sections = true | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,TESTS,LOCALFOLDER | ||
known_tests = | ||
tests | ||
skip = | ||
docs/conf.py | ||
skip_glob = | ||
*/migrations/* |
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,90 @@ | ||
[MASTER] | ||
|
||
# A comma-separated list of package or module names from where C extensions may | ||
# be loaded. Extensions are loading into the active Python interpreter and may | ||
# run arbitrary code | ||
extension-pkg-whitelist=lxml,posix_ipc,spidev,netifaces | ||
|
||
# Add files or directories to the blacklist. They should be base names, not | ||
# paths. | ||
ignore=migrations,south_migrations | ||
|
||
# Add files or directories matching the regex patterns to the blacklist. The | ||
# regex matches against base names, not paths. | ||
ignore-patterns=.*_pb2.py | ||
|
||
|
||
[MESSAGES CONTROL] | ||
|
||
# Disable the message, report, category or checker with the given id(s). You | ||
# can either give multiple identifiers separated by comma (,) or put this | ||
# option multiple times (only on the command line, not in the configuration | ||
# file where it should appear only once).You can also use "--disable=all" to | ||
# disable everything first and then reenable specific checks. For example, if | ||
# you want to run only the similarities checker, you can use "--disable=all | ||
# --enable=similarities". If you want to run only the classes checker, but have | ||
# no Warning level messages displayed, use"--disable=all --enable=classes | ||
# --disable=W" | ||
disable= | ||
arguments-differ, | ||
attribute-defined-outside-init, | ||
bad-continuation, | ||
cyclic-import, | ||
duplicate-code, | ||
fixme, | ||
file-ignored, | ||
invalid-name, | ||
locally-enabled, | ||
locally-disabled, | ||
missing-docstring, | ||
no-init, | ||
no-member, | ||
no-self-use, | ||
old-style-class, | ||
protected-access, | ||
redefined-variable-type, | ||
superfluous-parens, | ||
too-few-public-methods, | ||
too-many-ancestors, | ||
too-many-arguments, | ||
too-many-branches, | ||
too-many-instance-attributes, | ||
too-many-lines, | ||
too-many-locals, | ||
too-many-public-methods, | ||
too-many-statements, | ||
unused-argument, | ||
useless-return, | ||
wrong-import-order # we have a custom isort config which pylint can't grok | ||
|
||
|
||
[REPORTS] | ||
|
||
# Template used to display messages. This is a python new-style format string | ||
# used to format the message information. See doc for all details | ||
msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" | ||
|
||
|
||
[FORMAT] | ||
|
||
# Maximum number of characters on a single line. | ||
max-line-length=120 | ||
|
||
|
||
[VARIABLES] | ||
|
||
# A regular expression matching the beginning of the name of dummy variables | ||
# (i.e. not used). | ||
# Don't use pylint 1.6.1 default regexp, it doesn't accept underscores in the middle | ||
dummy-variables-rgx=_|dummy | ||
|
||
[DESIGN] | ||
|
||
# Maximum number of arguments for function / method | ||
max-args=8 | ||
|
||
# Maximum number of parents for a class (see R0901). | ||
max-parents=10 | ||
|
||
# Maximum number of attributes for a class (see R0902). | ||
max-attributes=10 |
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
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
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
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
from django.conf import settings | ||
|
||
|
||
_thread_locals = local() | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# `docutils` is needed to check for `setup.py check --restructuredtext` | ||
docutils | ||
isort | ||
pylint |
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
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