aboutsummaryrefslogtreecommitdiffstats
path: root/.flake8
diff options
context:
space:
mode:
Diffstat (limited to '.flake8')
-rw-r--r--.flake814
1 files changed, 14 insertions, 0 deletions
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..c9a526e
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,14 @@
+[flake8]
+select = C,E,F,W,ANN
+# ANN003 is annotation on, eg, **kwargs
+# ANN101 is annotation on 'self'
+# ANN204 is annotation on '__init__()'
+# E265,E266 are restrictions on comments ('#')
+# E501 is line-too-long, which we enforce with black
+# W503,E203 are allowed by black
+ignore = ANN003,ANN101,ANN204,E265,E266,E501,W503,E203
+per-file-ignores =
+ grobid_tei_xml/__init__.py: F401
+ tests/*.py: F405,F403,E501
+exclude = .git,__pycache__,.venv
+max-line-length = 96