repo-review 0.10.1__tar.gz → 0.10.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {repo_review-0.10.1 → repo_review-0.10.3}/.github/dependabot.yml +4 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.github/workflows/cd.yml +2 -2
- {repo_review-0.10.1 → repo_review-0.10.3}/.github/workflows/ci.yml +4 -4
- {repo_review-0.10.1 → repo_review-0.10.3}/.pre-commit-config.yaml +2 -2
- {repo_review-0.10.1 → repo_review-0.10.3}/PKG-INFO +2 -2
- {repo_review-0.10.1 → repo_review-0.10.3}/action.yml +1 -1
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/index.html +4 -4
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/intro.md +3 -3
- {repo_review-0.10.1 → repo_review-0.10.3}/pyproject.toml +1 -1
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/__main__.py +1 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_version.py +2 -2
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/html.py +4 -2
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/processor.py +9 -4
- {repo_review-0.10.1 → repo_review-0.10.3}/.devcontainer/devcontainer.json +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.git_archival.txt +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.gitattributes +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.github/CONTRIBUTING.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.github/matchers/pylint.json +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.gitignore +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.pre-commit-hooks.yaml +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/.readthedocs.yaml +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/LICENSE +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/README.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/.nojekyll +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/api/repo_review.resources.rst +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/api/repo_review.rst +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/changelog.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/checks.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/cli.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/conf.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/families.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/fixtures.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/index.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/plugins.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/programmatic.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/webapp.js +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/docs/webapp.md +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/noxfile.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/__init__.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/__init__.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/importlib/__init__.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/importlib/resources/__init__.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/importlib/resources/abc.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/tomllib.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/typing.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_version.pyi +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/checks.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/families.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/fixtures.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/ghpath.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/py.typed +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/resources/__init__.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/resources/repo-review.schema.json +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/schema.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/conftest.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_checks.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_cmd.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_families.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_fixtures.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_multi.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_package.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_self.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_utilities/pyproject.py +0 -0
- {repo_review-0.10.1 → repo_review-0.10.3}/tests/test_utilities/pyproject.toml +0 -0
@@ -16,7 +16,7 @@ jobs:
|
|
16
16
|
with:
|
17
17
|
fetch-depth: 0
|
18
18
|
|
19
|
-
- uses: hynek/build-and-inspect-python-package@
|
19
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
20
20
|
|
21
21
|
publish:
|
22
22
|
name: Publish
|
@@ -27,7 +27,7 @@ jobs:
|
|
27
27
|
runs-on: ubuntu-latest
|
28
28
|
if: github.event_name == 'release' && github.event.action == 'published'
|
29
29
|
steps:
|
30
|
-
- uses: actions/download-artifact@
|
30
|
+
- uses: actions/download-artifact@v4
|
31
31
|
with:
|
32
32
|
name: Packages
|
33
33
|
path: dist
|
@@ -23,7 +23,7 @@ jobs:
|
|
23
23
|
runs-on: ubuntu-latest
|
24
24
|
steps:
|
25
25
|
- uses: actions/checkout@v4
|
26
|
-
- uses: actions/setup-python@
|
26
|
+
- uses: actions/setup-python@v5
|
27
27
|
with:
|
28
28
|
python-version: "3.x"
|
29
29
|
- uses: pre-commit/action@v3.0.0
|
@@ -49,7 +49,7 @@ jobs:
|
|
49
49
|
with:
|
50
50
|
fetch-depth: 0
|
51
51
|
|
52
|
-
- uses: actions/setup-python@
|
52
|
+
- uses: actions/setup-python@v5
|
53
53
|
with:
|
54
54
|
python-version: ${{ matrix.python-version }}
|
55
55
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
70
70
|
with:
|
71
71
|
fetch-depth: 0
|
72
72
|
|
73
|
-
- uses: hynek/build-and-inspect-python-package@
|
73
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
74
74
|
|
75
75
|
docs:
|
76
76
|
name: Docs
|
@@ -106,4 +106,4 @@ jobs:
|
|
106
106
|
- name: Run repo-review action
|
107
107
|
uses: ./
|
108
108
|
with:
|
109
|
-
plugins: sp-repo-review==2023.
|
109
|
+
plugins: sp-repo-review==2023.12.21
|
@@ -10,7 +10,7 @@ repos:
|
|
10
10
|
additional_dependencies: [black==23.*]
|
11
11
|
|
12
12
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
13
|
-
rev: "v0.1.
|
13
|
+
rev: "v0.1.9"
|
14
14
|
hooks:
|
15
15
|
- id: ruff
|
16
16
|
args: ["--fix", "--show-fixes"]
|
@@ -44,7 +44,7 @@ repos:
|
|
44
44
|
- id: rst-inline-touching-normal
|
45
45
|
|
46
46
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
47
|
-
rev: v1.7.
|
47
|
+
rev: v1.7.1
|
48
48
|
hooks:
|
49
49
|
- id: mypy
|
50
50
|
files: (src|web|tests)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: repo_review
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.3
|
4
4
|
Summary: Framework that can run checks on repos
|
5
5
|
Project-URL: Changelog, https://github.com/scientific-python/repo-review/releases
|
6
6
|
Project-URL: Demo, https://scientific-python.github.io/repo-review
|
@@ -47,7 +47,7 @@ Requires-Dist: sphinxcontrib-programoutput; extra == 'docs'
|
|
47
47
|
Requires-Dist: sphinxext-opengraph; extra == 'docs'
|
48
48
|
Provides-Extra: test
|
49
49
|
Requires-Dist: pytest>=7; extra == 'test'
|
50
|
-
Requires-Dist: sp-repo-review>=2023.
|
50
|
+
Requires-Dist: sp-repo-review>=2023.12.21; extra == 'test'
|
51
51
|
Requires-Dist: validate-pyproject>=0.14; extra == 'test'
|
52
52
|
Description-Content-Type: text/markdown
|
53
53
|
|
@@ -64,10 +64,10 @@
|
|
64
64
|
<App
|
65
65
|
header={true}
|
66
66
|
deps={[
|
67
|
-
"sp-repo-review==2023.
|
68
|
-
"repo-review
|
69
|
-
"validate-pyproject
|
70
|
-
"scikit-build-core
|
67
|
+
"sp-repo-review==2023.12.21",
|
68
|
+
"repo-review~=0.10.0",
|
69
|
+
"validate-pyproject~=0.15.0",
|
70
|
+
"scikit-build-core~=0.7.0",
|
71
71
|
]}
|
72
72
|
/>,
|
73
73
|
);
|
@@ -48,8 +48,8 @@ You can explicitly list checks to select or skip in your `pyproject.toml`:
|
|
48
48
|
|
49
49
|
```toml
|
50
50
|
[tool.repo-review]
|
51
|
-
select = [...]
|
52
|
-
ignore = [...]
|
51
|
+
select = ["..."]
|
52
|
+
ignore = ["..."]
|
53
53
|
```
|
54
54
|
|
55
55
|
## Pre-commit
|
@@ -99,4 +99,4 @@ Though check your favorite plugin, which might directly support running from
|
|
99
99
|
GitHub Actions, and then Dependabot's updating system will pin on your plugin,
|
100
100
|
rather than the framework (repo-review).
|
101
101
|
|
102
|
-
[pipx]: https://pypa.
|
102
|
+
[pipx]: https://pipx.pypa.io
|
@@ -343,6 +343,7 @@ def on_each(
|
|
343
343
|
if isinstance(package, GHPath):
|
344
344
|
if format_opt == "rich":
|
345
345
|
rich.print(f"[bold]Processing [blue]{package}[/blue] from GitHub\n")
|
346
|
+
base_package = package
|
346
347
|
header = package.repo
|
347
348
|
elif package.name == "pyproject.toml" and package.is_file():
|
348
349
|
# Special case for passing a path to a pyproject.toml
|
@@ -49,7 +49,9 @@ def to_html(
|
|
49
49
|
print(md.render(family_description).strip())
|
50
50
|
if family_results:
|
51
51
|
print("<table>")
|
52
|
-
print(
|
52
|
+
print(
|
53
|
+
'<tr><th>?</th><th nowrap="nowrap">Name</th><th>Description</th></tr>'
|
54
|
+
)
|
53
55
|
for result in family_results:
|
54
56
|
color = (
|
55
57
|
"orange"
|
@@ -79,7 +81,7 @@ def to_html(
|
|
79
81
|
)
|
80
82
|
print(f'<tr style="color: {color};">')
|
81
83
|
print(f'<td><span role="img" aria-label="{result_txt}">{icon}</span></td>')
|
82
|
-
print(f
|
84
|
+
print(f'<td nowrap="nowrap">{result.name}</td>')
|
83
85
|
if result.result is None or result.result:
|
84
86
|
print(f"<td>{description}</td>")
|
85
87
|
else:
|
@@ -192,13 +192,18 @@ def process(
|
|
192
192
|
|
193
193
|
# Collect our own config
|
194
194
|
config = pyproject(package).get("tool", {}).get("repo-review", {})
|
195
|
-
select_checks = select if select else
|
196
|
-
skip_checks = ignore if ignore else
|
195
|
+
select_checks = select if select else frozenset(config.get("select", ()))
|
196
|
+
skip_checks = ignore if ignore else frozenset(config.get("ignore", ()))
|
197
197
|
|
198
198
|
# Make a graph of the check's interdependencies
|
199
|
-
graph: dict[str,
|
200
|
-
n: getattr(t, "requires",
|
199
|
+
graph: dict[str, Set[str]] = {
|
200
|
+
n: getattr(t, "requires", frozenset()) for n, t in tasks.items()
|
201
201
|
}
|
202
|
+
for name, s in graph.items():
|
203
|
+
if not isinstance(s, Set):
|
204
|
+
msg = f"requires must be a set, got {s!r} for {name!r}" # type: ignore[unreachable]
|
205
|
+
raise TypeError(msg)
|
206
|
+
|
202
207
|
# Keep track of which checks have been completed
|
203
208
|
completed: dict[str, str | None] = {}
|
204
209
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/importlib/resources/__init__.py
RENAMED
File without changes
|
{repo_review-0.10.1 → repo_review-0.10.3}/src/repo_review/_compat/importlib/resources/abc.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|