diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2018-01-17 14:14:45 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-01-17 14:14:45 -0800 |
commit | c2a10a2aa23f3905ee22bb4b7c79ab963d966a9d (patch) | |
tree | 18d502edbbc09b8f9cf255697bd135e9718fb584 /.flake8_packages | |
parent | 52a9e5d2a31b4a66ce51d0ff03ab709417dee6dc (diff) | |
parent | ba6c39310b537bbeafd4eb00836623ac2bb19d99 (diff) | |
download | spack-0.11.0.tar.gz spack-0.11.0.tar.bz2 spack-0.11.0.tar.xz spack-0.11.0.zip |
Merge branch 'releases/v0.11.0'v0.11.0
Diffstat (limited to '.flake8_packages')
-rw-r--r-- | .flake8_packages | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.flake8_packages b/.flake8_packages new file mode 100644 index 0000000000..9fcc3b86d4 --- /dev/null +++ b/.flake8_packages @@ -0,0 +1,22 @@ +# -*- conf -*- +# flake8 settings for Spack package files. +# +# This should include all the same exceptions that we use for core files. +# +# In Spack packages, we also allow the single `from spack import *` +# wildcard import and dependencies can set globals for their +# dependents. So we add exceptions for checks related to undefined names. +# +# Note that we also add *per-line* exemptions for certain patters in the +# `spack flake8` command. This is where F403 for `from spack import *` +# is added (beause we *only* allow that wildcard). +# +# See .flake8 for regular exceptions. +# +# Redefinition exceptions: +# - F405: `name` may be undefined, or undefined from star imports: `module` +# - F821: undefined name `name` (needed for cmake, configure, etc.) +# +[flake8] +ignore = E129,E221,E241,E272,E731,F999,F405,F821 +max-line-length = 79 |