Skip to content

Commit

Permalink
Added python lint to make process - still with non-critical errors at…
Browse files Browse the repository at this point in the history
… this point
  • Loading branch information
mahtin committed Oct 15, 2016
1 parent 889d072 commit 5e8bc5a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

PYTHON = python
PANDOC = pandoc
PYLINT = pylint

EMAIL = "[email protected]"

Expand All @@ -26,6 +27,9 @@ sdist: all
upload: clean all
$(PYTHON) setup.py sdist upload --sign --identity="$(EMAIL)"

lint:
$(PYLINT) CloudFlare cli4

clean:
rm -rf build
rm -rf dist
Expand Down
38 changes: 38 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[MASTER]
; load-plugins=pylint_mccabe

[REPORTS]
output-format=colorized

[MESSAGES CONTROL]
disable=
attribute-defined-outside-init,
bad-builtin,
duplicate-code,
fixme,
locally-disabled,
locally-enabled,
missing-super-argument,
model-missing-unicode,
no-self-use,
too-few-public-methods,
too-many-ancestors,
too-many-lines,
unused-argument,
RP0001,
RP0002,
RP0003,
RP0101,
RP0401,
RP0402,
RP0701,
RP0801,

[BASIC]
function-rgx=[a-z_][a-z0-9_]{2,50}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$|setUp$|tearDown$
method-rgx=[a-z_][a-z0-9_]{2,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
variable-rgx=[a-z_][a-z0-9_]{0,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
argument-rgx=[a-z_][a-z0-9_]{0,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
attr-rgx=[a-z_][a-z0-9_]{2,30}$|maxDiff$
exclude-protected=_asdict,_fields,_replace,_source,_make,_meta
no-docstring-rgx=^Meta$|^_

0 comments on commit 5e8bc5a

Please sign in to comment.