Skip to content

Commit

Permalink
Update repo-review version
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Nov 16, 2023
1 parent 8c44ad9 commit 2d179df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.4"
rev: "v0.1.5"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/scientific-python/cookie
rev: 2023.09.21
rev: 2023.10.27
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
Expand Down
6 changes: 3 additions & 3 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extend = "pyproject.toml"
ignore = [
lint.ignore = [
# NOTE: to find a good code to fix, run:
# ruff --select="ALL" --statistics astropy/<subpackage>

Expand Down Expand Up @@ -221,11 +221,11 @@ ignore = [
# flake8-quotes (Q)
"Q000", # use double quotes
]
unfixable = [
lint.unfixable = [
"E711" # NoneComparison. Hard to fix b/c numpy has it's own None.
]

[extend-per-file-ignores]
[lint.extend-per-file-ignores]
"__init__.py" = ["E402", "F401", "F403"]
"test_*.py" = [
"RUF015", # Prefer next({iterable}) over single element slice
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ ignore = [
"PC180", # ignore using `prettier` in pre-commit
"PC901", # ignore using custom update message (we have many of the default ones in our history already)
"PP308", # ignore requiring `-ra` flag for pytest, astropy's test suite is too large for this to be useful
"RF101", # See scientific-python/cookie#311 (bugbear must be selected)
"RF102", # See scientific-python/cookie#311 (isort must be selected)
"RF103", # See scientific-python/cookie#311 (pyupgrade must be selected)
]

[tool.towncrier]
Expand Down

0 comments on commit 2d179df

Please sign in to comment.