Skip to content

Commit

Permalink
Merge pull request #361 from adamtheturtle/dependabot/pip/ruff-0.9.1
Browse files Browse the repository at this point in the history
Bump ruff from 0.9.0 to 0.9.1
  • Loading branch information
adamtheturtle authored Jan 14, 2025
2 parents 30e875e + 21e0fda commit 2392505
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions pip_check_reqs/find_extra_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ def main(arguments: list[str] | None = None) -> None:
type=Path,
metavar="PATH",
default=Path("requirements.txt"),
help="path to the requirements file "
'(defaults to "requirements.txt")',
help='path to the requirements file (defaults to "requirements.txt")',
)
parser.add_argument(
"-f",
Expand Down
3 changes: 1 addition & 2 deletions pip_check_reqs/find_missing_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ def main(arguments: list[str] | None = None) -> None:
metavar="PATH",
type=Path,
default="requirements.txt",
help="path to the requirements file "
'(defaults to "requirements.txt")',
help='path to the requirements file (defaults to "requirements.txt")',
)
parser.add_argument(
"-f",
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ lint.select = [
]

lint.ignore = [
# We do not annotate the type of 'self', or 'cls'.
"ANN101",
# We are missing too many docstrings to quickly fix now.
"D100",
"D103",
Expand Down
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ pyroma==4.2
pytest==8.3.4
pytest-cov==6.0.0
ruamel.yaml==0.18.10
ruff==0.9.0
ruff==0.9.1
6 changes: 3 additions & 3 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def test_find_imported_modules_frozen(
if spec is not None and spec.origin == "frozen":
frozen_item_names.append(name)

assert (
frozen_item_names
), "This test is only valid if there are frozen modules in sys.modules"
assert frozen_item_names, (
"This test is only valid if there are frozen modules in sys.modules"
)

spam = tmp_path / "spam.py"
statement = f"import {frozen_item_names[0]}"
Expand Down

0 comments on commit 2392505

Please sign in to comment.