summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-06-18 09:19:45 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-06-18 09:19:45 +0200
commit0769049b074e609b1933e71e5f890991009eae40 (patch)
tree1ab1e2a8cf0354e9b83f7b8efba0327671b107ff
parentbaeee0049f06430801a2d9940f875747e51be7f5 (diff)
downloadpykolab-0769049b074e609b1933e71e5f890991009eae40.tar.gz
Add flake and pylint configuration
-rw-r--r--.flake818
-rw-r--r--.pylintrc11
2 files changed, 29 insertions, 0 deletions
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..07259cb
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,18 @@
+[flake8]
+exclude =
+ .git,
+ __pycache__,
+ docs/source/conf.py
+
+ignore =
+ # 'something' imported but unused
+ F401,
+ # 'from module import *' used: unable to detect undefined names
+ F403,
+ # name may be undefined, or defined from star imports: module
+ F405,
+ # line break before binary operator
+ W503
+
+max-complexity = 18
+max-line-length = 100
diff --git a/.pylintrc b/.pylintrc
new file mode 100644
index 0000000..21c9276
--- /dev/null
+++ b/.pylintrc
@@ -0,0 +1,11 @@
+[MASTER]
+disable=
+ cyclic-import,
+ duplicate-code,
+ missing-docstring,
+ unused-argument,
+ unused-wildcard-import,
+ wildcard-import
+
+function-rgx=[a-z_][a-z0-9_]{2,90}$
+init-hook="import sys; sys.path.insert(0, './data/')"