Skip to content

Commit

Permalink
chore: update pre-commit hooks (#490)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.258 → v0.0.263](astral-sh/ruff-pre-commit@v0.0.258...v0.0.263)
- [github.com/nbQA-dev/nbQA: 1.6.4 → 1.7.0](nbQA-dev/nbQA@1.6.4...1.7.0)
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](pre-commit/mirrors-mypy@v1.1.1...v1.2.0)

* Update pyproject.toml

* chore: update for recent matplotlib & ruff

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <henry.fredrick.schreiner@cern.ch>
Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
3 people committed May 3, 2023
1 parent 6b7c3f9 commit 2025240
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black-jupyter

Expand All @@ -23,7 +23,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.258
rev: v0.0.264
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand All @@ -35,14 +35,14 @@ repos:

# Notebook formatting
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.4
rev: 1.7.0
hooks:
- id: nbqa-ruff
additional_dependencies: [ruff==0.0.253]
args: ["--extend-ignore=B008,T20,I002,E402", "--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
rev: v1.2.0
hooks:
- id: mypy
files: ^src
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ select = [
"UP", # pyupgrade
"YTT", # flake8-2020
]
extend-ignore = ["PLR", "E501", "PT011", "PT013", "PT004"]
extend-ignore = ["PLR", "E501", "PT011", "PT013", "PT004", "B017"]
target-version = "py37"
typing-modules = ["hist._compat.typing"]
src = ["src"]
Expand Down
Binary file modified tests/baseline/test_plot1d_auto_handling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,7 @@ def test_hist_proxy():

assert type(h) == Hist

with pytest.raises(AttributeError):
Hist().new
assert not hasattr(Hist(), "new")

h = (
Hist.new.Reg(10, 0, 1, name="x")
Expand Down
3 changes: 1 addition & 2 deletions tests/test_named.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,7 @@ def test_named_hist_proxy():

assert type(h) is NamedHist

with pytest.raises(AttributeError):
NamedHist().new
assert not hasattr(NamedHist(), "new")

h = (
NamedHist.new.Reg(10, 0, 1, name="x")
Expand Down

0 comments on commit 2025240

Please sign in to comment.