Skip to content

Commit

Permalink
Update ruff to 0.5.0 (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jul 5, 2024
1 parent a2e28a8 commit baff63e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.0"
rev: "v0.5.0"
hooks:
- id: ruff
args:
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build
twine

# lint
ruff==0.4.0
ruff==0.5.0
pyright==1.1.342

# test
Expand Down
7 changes: 2 additions & 5 deletions tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,11 +748,8 @@ def _did_change(arch_name: str) -> bool:
r"requirements-dev.txt",
]
pattern = re.compile("|".join(important_files))
if any(pattern.match(file) for file in changed):
# some important files were changed
return True

return False
# some important files were changed?
return any(pattern.match(file) for file in changed)


def skip_if_unchanged(file: str):
Expand Down

0 comments on commit baff63e

Please sign in to comment.