Skip to content

Commit 6e2cdb7

Browse files
author
Pierre Duperray
committed
updated .flake8 according to upstream spack-packages repo
1 parent 9047c5d commit 6e2cdb7

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.flake8

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# -*- conf -*-
2+
# This is the only flake8 rule Spack violates somewhat flagrantly
3+
# - E731: do not assign a lambda expression, use a def
4+
#
5+
# This is the only flake8 exception needed when using Black.
6+
# - E203: white space around slice operators can be required, ignore : warn
7+
#
8+
# We still allow these in packages
9+
# - F403: from/import * used; unable to detect undefined names
10+
# - F405: undefined name or from *
11+
# - F821: undefined name (needed with from/import *)
12+
#
113
[flake8]
14+
extend-ignore = E731,E203
215
max-line-length = 99
3-
extend-ignore = F403,F405
16+
per-file-ignores =
17+
*/package.py:F403,F405,F821
18+
# format = spack
19+
20+
# [flake8:local-plugins]
21+
# report =
22+
# spack = flake8_formatter:SpackFormatter
23+
# paths =
24+
# ./spack-core/share/spack/qa/

0 commit comments

Comments
 (0)