aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Drummond <ldrumm@rtps.co>2020-11-03 21:31:44 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-04 12:24:48 +0200
commit63814543de6f46fc8aee7d3884a8746c968806ca (patch)
treea43aeb1f7b6d722a663b89a63a65ead11f5c8fce
parent2bd309543fc530e2919be605cc80c0849321537b (diff)
downloadmeson-63814543de6f46fc8aee7d3884a8746c968806ca.zip
meson-63814543de6f46fc8aee7d3884a8746c968806ca.tar.gz
meson-63814543de6f46fc8aee7d3884a8746c968806ca.tar.bz2
Bare exceptions are no longer allowed [NFC]
The last instances of try: ... except: ... were removed in bf98ffca. The sideci.yml file was updated, but the flake8 config still allows this. Ensure that flake8 tests fail if this questionable construct appears again.
-rw-r--r--.flake82
-rw-r--r--.pylintrc3
2 files changed, 2 insertions, 3 deletions
diff --git a/.flake8 b/.flake8
index ff38c0f..6187601 100644
--- a/.flake8
+++ b/.flake8
@@ -24,8 +24,6 @@ ignore =
E731,
# E741: ambiguous variable name 'l'
E741,
- # E722: do not use bare except'
- E722,
# W504: line break after binary operator
W504,
# A003: builtin class attribute
diff --git a/.pylintrc b/.pylintrc
index 41adf61..bfa6d2f 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -22,4 +22,5 @@ enable=
singleton-comparison,
too-many-function-args,
unexpected-keyword-arg,
- unreachable
+ unreachable,
+ bare-except