Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 5e8bc5a

Browse files
committed
Added python lint to make process - still with non-critical errors at this point
1 parent 889d072 commit 5e8bc5a

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
PYTHON = python
33
PANDOC = pandoc
4+
PYLINT = pylint
45

56
EMAIL = "mahtin@mahtin.com"
67

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

30+
lint:
31+
$(PYLINT) CloudFlare cli4
32+
2933
clean:
3034
rm -rf build
3135
rm -rf dist

pylintrc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[MASTER]
2+
; load-plugins=pylint_mccabe
3+
4+
[REPORTS]
5+
output-format=colorized
6+
7+
[MESSAGES CONTROL]
8+
disable=
9+
attribute-defined-outside-init,
10+
bad-builtin,
11+
duplicate-code,
12+
fixme,
13+
locally-disabled,
14+
locally-enabled,
15+
missing-super-argument,
16+
model-missing-unicode,
17+
no-self-use,
18+
too-few-public-methods,
19+
too-many-ancestors,
20+
too-many-lines,
21+
unused-argument,
22+
RP0001,
23+
RP0002,
24+
RP0003,
25+
RP0101,
26+
RP0401,
27+
RP0402,
28+
RP0701,
29+
RP0801,
30+
31+
[BASIC]
32+
function-rgx=[a-z_][a-z0-9_]{2,50}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$|setUp$|tearDown$
33+
method-rgx=[a-z_][a-z0-9_]{2,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
34+
variable-rgx=[a-z_][a-z0-9_]{0,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
35+
argument-rgx=[a-z_][a-z0-9_]{0,30}$|test_[a-zA-Z_][a-zA-Z0-9_]{2,100}$
36+
attr-rgx=[a-z_][a-z0-9_]{2,30}$|maxDiff$
37+
exclude-protected=_asdict,_fields,_replace,_source,_make,_meta
38+
no-docstring-rgx=^Meta$|^_

0 commit comments

Comments
 (0)