summaryrefslogtreecommitdiff
path: root/.flake8
diff options
context:
space:
mode:
Diffstat (limited to '.flake8')
-rw-r--r--.flake833
1 files changed, 33 insertions, 0 deletions
diff --git a/.flake8 b/.flake8
index 195c783726..04ca460eeb 100644
--- a/.flake8
+++ b/.flake8
@@ -30,3 +30,36 @@
[flake8]
ignore = E129,E221,E241,E272,E731,W503,W504,F999,N801,N813,N814
max-line-length = 79
+
+# F4: Import
+# - F405: `name` may be undefined, or undefined from star imports: `module`
+#
+# F8: Name
+# - F821: undefined name `name`
+#
+per-file-ignores =
+ var/spack/repos/*/package.py:F405,F821
+
+# exclude things we usually do not want linting for.
+# These still get linted when passed explicitly, as when spack flake8 passes
+# them on the command line.
+exclude =
+ .git
+ etc/
+ opt/
+ share/
+ var/spack/cache/
+ var/spack/gpg*/
+ var/spack/junit-report/
+ var/spack/mock-configs/
+ lib/spack/external
+ __pycache__
+ var
+
+format = spack
+
+[flake8:local-plugins]
+report =
+ spack = flake8_formatter:SpackFormatter
+paths =
+ ./share/spack/qa/