Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#4104)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and henryiii authored Aug 3, 2022
1 parent 88a1bb9 commit ba5ccd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:

# Upgrade old Python syntax
- repo: https://github.com/asottile/pyupgrade
rev: "v2.37.2"
rev: "v2.37.3"
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand Down Expand Up @@ -71,7 +71,7 @@ repos:

# Autoremoves unused imports
- repo: https://github.com/hadialqattan/pycln
rev: "v2.0.4"
rev: "v2.1.1"
hooks:
- id: pycln
stages: [manual]
Expand Down Expand Up @@ -99,7 +99,7 @@ repos:

# Flake8 also supports pre-commit natively (same author)
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
rev: "5.0.2"
hooks:
- id: flake8
exclude: ^(docs/.*|tools/.*)$
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ zip_safe = False
max-line-length = 120
show_source = True
exclude = .git, __pycache__, build, dist, docs, tools, venv
extend-ignore = E203, E722, B950
extend-ignore = E203, E722, B903, B950
extend-select = B9
4 changes: 2 additions & 2 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def test_custom(msg):
with pytest.raises(m.MyException5) as excinfo:
try:
m.throws5()
except m.MyException5_1:
raise RuntimeError("Exception error: caught child from parent")
except m.MyException5_1 as err:
raise RuntimeError("Exception error: caught child from parent") from err
assert msg(excinfo.value) == "this is a helper-defined translated exception"


Expand Down

0 comments on commit ba5ccd8

Please sign in to comment.