diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2021-10-01 18:27:01 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-10-01 22:04:36 -0400 |
commit | bb31651023ce9c54088f2963b4950f075b2fcd18 (patch) | |
tree | e2be8ab13c8018de334fe88c17ca48379da25f78 | |
parent | 42c7eff94b081e31fb2c2759d3ef9b3197c48c0c (diff) |
Split out some setup.cfg sections
-rw-r--r-- | .flake8 | 9 | ||||
-rw-r--r-- | pytest.ini | 10 | ||||
-rw-r--r-- | setup.cfg | 20 |
3 files changed, 19 insertions, 20 deletions
diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..1317fd52 --- /dev/null +++ b/.flake8 @@ -0,0 +1,9 @@ +[flake8] +exclude = sites,.git,build,dist,demos +# NOTE: W503, E203 are concessions to black 18.0b5 and could be reinstated +# later if fixed on that end. +# NOTE: E722 seems to only have started popping up on move to flake8 3.6.0 from +# 2.4.0. Not sure why, bare excepts have been a (regrettable) thing forever... +ignore = E124,E125,E128,E261,E301,E302,E303,E402,E721,W503,E203,E722 +max-line-length = 79 + diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..be207cd8 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,10 @@ +[pytest] +# We use pytest-relaxed just for its utils at the moment, so disable it at the +# plugin level until we adapt test organization to really use it. +addopts = -p no:relaxed +# Loop on failure +looponfailroots = tests paramiko +# Ignore some warnings we cannot easily handle. +filterwarnings = + ignore::DeprecationWarning:pkg_resources + ignore::cryptography.utils.CryptographyDeprecationWarning @@ -6,23 +6,3 @@ license_file = LICENSE [coverage:run] omit = paramiko/_winapi.py - -[flake8] -exclude = sites,.git,build,dist,demos -# NOTE: W503, E203 are concessions to black 18.0b5 and could be reinstated -# later if fixed on that end. -# NOTE: E722 seems to only have started popping up on move to flake8 3.6.0 from -# 2.4.0. Not sure why, bare excepts have been a (regrettable) thing forever... -ignore = E124,E125,E128,E261,E301,E302,E303,E402,E721,W503,E203,E722 -max-line-length = 79 - -[tool:pytest] -# We use pytest-relaxed just for its utils at the moment, so disable it at the -# plugin level until we adapt test organization to really use it. -addopts = -p no:relaxed -# Loop on failure -looponfailroots = tests paramiko -# Ignore some warnings we cannot easily handle. -filterwarnings = - ignore::DeprecationWarning:pkg_resources - ignore::cryptography.utils.CryptographyDeprecationWarning |