summaryrefslogtreecommitdiffstats
path: root/.pylintrc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:49:10 +0000
commita85f3954a8fe112640c2c35da3228be29b17c97c (patch)
tree7ee43f79639ee53903e7ca389e548974e1497c3a /.pylintrc
parentInitial commit. (diff)
downloadgitlint-a85f3954a8fe112640c2c35da3228be29b17c97c.tar.xz
gitlint-a85f3954a8fe112640c2c35da3228be29b17c97c.zip
Adding upstream version 0.18.0.upstream/0.18.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc48
1 files changed, 48 insertions, 0 deletions
diff --git a/.pylintrc b/.pylintrc
new file mode 100644
index 0000000..dc54455
--- /dev/null
+++ b/.pylintrc
@@ -0,0 +1,48 @@
+# The format of this file isn't really documented; just use --generate-rcfile
+[MASTER]
+
+[Messages Control]
+# C0111: Don't require docstrings on every method
+# W0511: TODOs in code comments are fine.
+# W0142: *args and **kwargs are fine.
+# W0223: abstract methods don't need to be overwritten (i.e. when overwriting a Django REST serializer)
+# W0622: Redefining id is fine.
+# R0901: Too many ancestors (i.e. when subclassing test classes)
+# R0801: Similar lines in files
+# I0011: Informational: locally disabled pylint
+# I0013: Informational: Ignoring entire file
+disable=bad-option-value,C0111,W0511,W0142,W0622,W0223,W0212,R0901,R0801,I0011,I0013,anomalous-backslash-in-string,useless-object-inheritance,unnecessary-pass
+
+[Format]
+max-line-length=120
+
+[Basic]
+# Variable names can be 1 to 31 characters long, with lowercase and underscores
+variable-rgx=[a-z_][a-z0-9_]{0,30}$
+
+# Argument names can be 2 to 31 characters long, with lowercase and underscores
+argument-rgx=[a-z_][a-z0-9_]{1,30}$
+
+# Method names should be at least 3 characters long
+# and be lower-cased with underscores
+method-rgx=([a-z_][a-z0-9_]{2,50}|setUp|tearDown)$
+
+# Allow 'id' as variable name everywhere
+good-names=id,c,_
+
+bad-names=__author__
+
+# Ignore all variables that start with an underscore (e.g. unused _request variable in a view)
+dummy-variables-rgx=_
+
+[Design]
+max-public-methods=100
+min-public-methods=0
+# Maximum number of attributes of a class
+max-attributes=15
+max-args=10
+max-locals=20
+
+[Typecheck]
+# Allow the use of the Django 'objects' members
+generated-members=sh.git