From 5e8bc5a60934d8000f468f164116e01de2925d2e Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Sat, 15 Oct 2016 08:25:18 -0700 Subject: [PATCH] Added python lint to make process - still with non-critical errors at this point --- Makefile | 4 ++++ pylintrc | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pylintrc diff --git a/Makefile b/Makefile index 1be0764..c723cb9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ PYTHON = python PANDOC = pandoc +PYLINT = pylint EMAIL = "mahtin@mahtin.com" @@ -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 diff --git a/pylintrc b/pylintrc new file mode 100644 index 0000000..872a23a --- /dev/null +++ b/pylintrc @@ -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$|^_