Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/reusable-rr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,14 @@ jobs:
run: |
pipx run nox -s readme
git diff --exit-code

pylint:
name: Run pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run pylint
run: pipx run nox[uv] -s rr_pylint -- --output-format=github
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.4.1
1 change: 1 addition & 0 deletions src/sp_repo_review/_compat/importlib/resources/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys

if sys.version_info < (3, 11):
# pylint: disable-next=deprecated-class
from importlib.abc import Traversable
else:
from importlib.resources.abc import Traversable
Expand Down
3 changes: 2 additions & 1 deletion src/sp_repo_review/checks/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def check(pyproject: dict[str, Any], package: Traversable) -> bool | None:

setup_cfg = package / "setup.cfg"
if setup_cfg.is_file():
# pylint: disable-next=import-outside-toplevel
import configparser

config = configparser.ConfigParser()
Expand Down Expand Up @@ -134,7 +135,7 @@ def check(pyproject: dict[str, Any]) -> bool:
options = pyproject["tool"]["pytest"]["ini_options"]
return (
"minversion" in options
and int(str(options["minversion"]).split(".")[0]) >= 6
and int(str(options["minversion"]).split(".", maxsplit=1)[0]) >= 6
)


Expand Down
4 changes: 1 addition & 3 deletions src/sp_repo_review/families.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class Family(typing.TypedDict, total=False):
description: str # Defaults to empty


def get_families(
pyproject: dict[str, Any] = {}, # noqa: B006
) -> dict[str, Family]:
def get_families(pyproject: dict[str, Any]) -> dict[str, Family]:
pyproject_description = f"- Detected build backend: `{pyproject.get('build-system', {}).get('build-backend', 'MISSING')}`"
if classifiers := pyproject.get("project", {}).get("classifiers", []):
licenses = [
Expand Down