summaryrefslogtreecommitdiffstats
path: root/.flake8
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-05 10:38:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-05 10:39:17 +0000
commitd6d80a17444c90259c5bfdacb84c61e6bfece655 (patch)
tree157bff98bd572acf0b64cd5d478b0bdac87a37ae /.flake8
parentReleasing debian version 2.1.2-4. (diff)
downloadpendulum-d6d80a17444c90259c5bfdacb84c61e6bfece655.tar.xz
pendulum-d6d80a17444c90259c5bfdacb84c61e6bfece655.zip
Merging upstream version 3.0.0~a1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.flake8')
-rw-r--r--.flake828
1 files changed, 28 insertions, 0 deletions
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..d571285
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,28 @@
+[flake8]
+max-line-length = 88
+per-file-ignores =
+ # F401: Module imported but unused
+ # TC001: Move import into type checking block
+ __init__.py:F401, TC001
+ # F811: Redefinition of unused name from line n
+ pendulum/tz/timezone.py:F811
+min_python_version = 3.7.0
+ban-relative-imports = true
+# flake8-use-fstring: https://github.com/MichaelKim0407/flake8-use-fstring#--percent-greedy-and---format-greedy
+format-greedy = 1
+inline-quotes = double
+enable-extensions = TC, TC1
+type-checking-exempt-modules = typing, typing-extensions
+eradicate-whitelist-extend = ^-.*;
+extend-ignore =
+ # E501: Line too long
+ E501,
+ # E203: Whitespace before ':'
+ E203,
+ # SIM106: Handle error-cases first
+ SIM106,
+extend-exclude =
+ # External to the project's coding standards:
+ docs/*,
+ # Machine-generated, too many false-positives
+ pendulum/locales/*,