diff --git a/pip_check_reqs/find_extra_reqs.py b/pip_check_reqs/find_extra_reqs.py index a7c6e1a..965b3ba 100644 --- a/pip_check_reqs/find_extra_reqs.py +++ b/pip_check_reqs/find_extra_reqs.py @@ -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", diff --git a/pip_check_reqs/find_missing_reqs.py b/pip_check_reqs/find_missing_reqs.py index de3484a..d02ee80 100644 --- a/pip_check_reqs/find_missing_reqs.py +++ b/pip_check_reqs/find_missing_reqs.py @@ -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", diff --git a/pyproject.toml b/pyproject.toml index 9eaa959..d0ab139 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/test-requirements.txt b/test-requirements.txt index b70fd55..24dd5e5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 diff --git a/tests/test_common.py b/tests/test_common.py index 904acd6..6566a11 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -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]}"