summaryrefslogtreecommitdiffstats
path: root/setup.cfg
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-03 21:13:02 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-03 21:13:02 +0200
commit447a74aa4150c44d948be9ee9b4e6a7f924d0738 (patch)
tree3bf31077a555891987e5b6e05ad92f1f79347a26 /setup.cfg
downloadpydanclick-447a74aa4150c44d948be9ee9b4e6a7f924d0738.tar.gz
wip: initHEADtrunk
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg64
1 files changed, 64 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..8be44a6
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,64 @@
+[darglint]
+strictness = short
+docstring_style = google
+
+[flake8]
+max-complexity = 10
+max-line-length = 79
+docstring-convention = google
+select =
+ # flake8-annotations
+ ANN,
+ # flake8-bugbear
+ B,
+ # flake8-bugbear
+ B9,
+ # flake8-black
+ BLK,
+ # mccabe
+ C,
+ # flake8-docstrings
+ D,
+ # darglint
+ DAR,
+ # pycodestyle
+ E,
+ # pyflakes
+ F,
+ # flake8-isort
+ I,
+ # flake8-bandit
+ S,
+ # pycodestyle
+ W
+ignore =
+ # Missing type annotation for '*args'
+ ANN002,
+ # Missing type annotation for '**kwargs'
+ ANN003,
+ # Missing type annotation for 'self' in method.
+ ANN101,
+ # Missing type annotation for 'cls' in classmethod.
+ ANN102,
+ # Abstract base class with no abstract method. Remember to use
+ # @abstractmethod, @abstractclassmethod, and/or
+ # @abstractproperty decorators.
+ B024,
+ # Use r”“” if any backslashes in a docstring
+ # (Click uses backslashes to format CLI help)
+ D301,
+ # Whitespace before ':' (does not work well with Black)
+ E203,
+ # Line too long (82 > 79 characters)
+ # (Already checked by flake8-bugbear B950 with a margin of 10%)
+ # https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
+ E501,
+ # XML minidom insecure
+ S408,
+ # Probable insecure usage of temp file/directory.
+ S108,
+ # Line break occurred before a binary operator
+ # (does not work well with Black)
+ W503,
+ # XML minidom insecure
+ S408,
remember that computers suck.