Skip to content

Commit

Permalink
Merge pull request #207 from ocefpaf/update_precommits
Browse files Browse the repository at this point in the history
Update pre-commits
  • Loading branch information
ocefpaf authored Apr 2, 2024
2 parents 6518195 + ebf6828 commit 80c0f6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
files: requirements-dev.txt

- repo: https://github.com/psf/black
rev: 24.1.1
rev: 24.3.0
hooks:
- id: black
language_version: python3
Expand Down Expand Up @@ -45,7 +45,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.3.5
hooks:
- id: ruff

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.ruff]
select = [
lint.select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
Expand All @@ -58,10 +58,11 @@ select = [
target-version = "py39"
line-length = 80

# [lint.per-file-ignores]
[tool.ruff.per-file-ignores]
"docs/source/conf.py" = [
"E402",
"A001",
"E402", # Module level import not at top of file
"A001", # builtin-variable-shadowing
]

[tool.check-manifest]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def _assert_is_valid_plot_return_object(objs):
else:
assert isinstance(objs, (plt.Artist, tuple, dict)), (
"objs is neither an ndarray of Artist instances nor a "
'single Artist instance, tuple, or dict, "objs" is a {!r} '
"".format(objs.__class__.__name__)
f'single Artist instance, tuple, or dict, "objs" is a {objs.__class__.__name__!r} '
""
)


Expand Down

0 comments on commit 80c0f6b

Please sign in to comment.