Skip to content

Commit ba5ccd8

Browse files
[pre-commit.ci] pre-commit autoupdate (#4104)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](asottile/pyupgrade@v2.37.2...v2.37.3) - [github.com/hadialqattan/pycln: v2.0.4 → v2.1.1](hadialqattan/pycln@v2.0.4...v2.1.1) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](PyCQA/flake8@4.0.1...5.0.2) * fix: minor touchups for flake8 Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent 88a1bb9 commit ba5ccd8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232

3333
# Upgrade old Python syntax
3434
- repo: https://github.com/asottile/pyupgrade
35-
rev: "v2.37.2"
35+
rev: "v2.37.3"
3636
hooks:
3737
- id: pyupgrade
3838
args: [--py36-plus]
@@ -71,7 +71,7 @@ repos:
7171

7272
# Autoremoves unused imports
7373
- repo: https://github.com/hadialqattan/pycln
74-
rev: "v2.0.4"
74+
rev: "v2.1.1"
7575
hooks:
7676
- id: pycln
7777
stages: [manual]
@@ -99,7 +99,7 @@ repos:
9999

100100
# Flake8 also supports pre-commit natively (same author)
101101
- repo: https://github.com/PyCQA/flake8
102-
rev: "4.0.1"
102+
rev: "5.0.2"
103103
hooks:
104104
- id: flake8
105105
exclude: ^(docs/.*|tools/.*)$

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ zip_safe = False
4646
max-line-length = 120
4747
show_source = True
4848
exclude = .git, __pycache__, build, dist, docs, tools, venv
49-
extend-ignore = E203, E722, B950
49+
extend-ignore = E203, E722, B903, B950
5050
extend-select = B9

tests/test_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def test_custom(msg):
185185
with pytest.raises(m.MyException5) as excinfo:
186186
try:
187187
m.throws5()
188-
except m.MyException5_1:
189-
raise RuntimeError("Exception error: caught child from parent")
188+
except m.MyException5_1 as err:
189+
raise RuntimeError("Exception error: caught child from parent") from err
190190
assert msg(excinfo.value) == "this is a helper-defined translated exception"
191191

192192

0 commit comments

Comments
 (0)