mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Add pylint and Travis config
This commit is contained in:
parent
b3c62515fa
commit
631b75c9f8
3 changed files with 107 additions and 0 deletions
97
.pylintrc
Normal file
97
.pylintrc
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
[MASTER]
|
||||||
|
ignore = ,input
|
||||||
|
persistent = yes
|
||||||
|
|
||||||
|
[MESSAGES CONTROL]
|
||||||
|
disable =
|
||||||
|
missing-docstring,
|
||||||
|
fixme,
|
||||||
|
duplicate-code,
|
||||||
|
no-member,
|
||||||
|
parse-error,
|
||||||
|
bad-continuation,
|
||||||
|
too-few-public-methods,
|
||||||
|
global-statement,
|
||||||
|
cyclic-import,
|
||||||
|
locally-disabled,
|
||||||
|
file-ignored,
|
||||||
|
no-else-return,
|
||||||
|
unnecessary-lambda
|
||||||
|
|
||||||
|
[REPORTS]
|
||||||
|
output-format = text
|
||||||
|
files-output = no
|
||||||
|
reports = no
|
||||||
|
|
||||||
|
[FORMAT]
|
||||||
|
max-line-length = 120
|
||||||
|
max-statement-lines = 75
|
||||||
|
single-line-if-stmt = no
|
||||||
|
no-space-check = trailing-comma,dict-separator
|
||||||
|
max-module-lines = 1000
|
||||||
|
indent-string = ' '
|
||||||
|
string-quote=single-avoid-escape
|
||||||
|
triple-quote=single
|
||||||
|
docstring-quote=double
|
||||||
|
|
||||||
|
[MISCELLANEOUS]
|
||||||
|
notes = FIXME,XXX,TODO
|
||||||
|
|
||||||
|
[SIMILARITIES]
|
||||||
|
min-similarity-lines = 4
|
||||||
|
ignore-comments = yes
|
||||||
|
ignore-docstrings = yes
|
||||||
|
ignore-imports = no
|
||||||
|
|
||||||
|
[BASIC]
|
||||||
|
# Regular expression which should only match correct module names
|
||||||
|
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct module level names
|
||||||
|
const-rgx=(([A-Za-z_][A-Za-z1-9_]*)|(__.*__))$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct class names
|
||||||
|
class-rgx=[A-Z_][a-zA-Z0-9_]+$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct function names
|
||||||
|
function-rgx=[a-z_][a-z0-9_]{2,35}$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct method names
|
||||||
|
method-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct instance attribute names
|
||||||
|
attr-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct argument names
|
||||||
|
argument-rgx=[a-z_][a-z0-9_]{0,30}$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct variable names
|
||||||
|
variable-rgx=[a-z_][a-z0-9_]{0,30}$
|
||||||
|
|
||||||
|
# Regular expression which should only match correct list comprehension /
|
||||||
|
# generator expression variable names
|
||||||
|
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
||||||
|
|
||||||
|
# Good variable names which should always be accepted, separated by a comma
|
||||||
|
good-names=logger,id,ID
|
||||||
|
|
||||||
|
# Bad variable names which should always be refused, separated by a comma
|
||||||
|
bad-names=foo,bar,baz,toto,tutu,tata
|
||||||
|
|
||||||
|
# List of builtins function names that should not be used, separated by a comma
|
||||||
|
bad-functions=apply,input
|
||||||
|
|
||||||
|
[DESIGN]
|
||||||
|
max-args = 10
|
||||||
|
ignored-argument-names = _.*
|
||||||
|
max-locals = 20
|
||||||
|
max-returns = 6
|
||||||
|
max-branches = 15
|
||||||
|
max-statements = 55
|
||||||
|
max-parents = 7
|
||||||
|
max-attributes = 10
|
||||||
|
min-public-methods = 2
|
||||||
|
max-public-methods = 20
|
||||||
|
|
||||||
|
[EXCEPTIONS]
|
||||||
|
overgeneral-exceptions = Exception
|
8
.travis.yml
Normal file
8
.travis.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "3.6"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- "pip install -r requirements.txt"
|
||||||
|
script:
|
||||||
|
- "pylint proxstar"
|
|
@ -17,3 +17,5 @@ sqlalchemy==1.2.12
|
||||||
sshtunnel==0.1.4
|
sshtunnel==0.1.4
|
||||||
tenacity==5.0.2
|
tenacity==5.0.2
|
||||||
websockify==0.8.0
|
websockify==0.8.0
|
||||||
|
pylint==2.3.1
|
||||||
|
pylint-quotes==0.2.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue