Skip to content

Commit f00f826

Browse files
chore: some cleanup (#237)
* chore: some cleanup Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * style: pre-commit fixes * chore: bump ruff Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * fix: encodings and ignore Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7033441 commit f00f826

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
additional_dependencies: [black==23.*]
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: "v0.5.6"
14+
rev: "v0.6.1"
1515
hooks:
1616
- id: ruff
1717
args: ["--fix", "--show-fixes"]

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
content="initial-scale=1, width=device-width"
77
/>
88
<script
9-
src="https://cdn.jsdelivr.net/pyodide/v0.25.1/full/pyodide.js"
9+
src="https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.js"
1010
crossorigin
1111
></script>
1212
<!-- Production -->
@@ -19,7 +19,7 @@
1919
crossorigin
2020
></script>
2121
<script
22-
src="https://unpkg.com/@mui/material@v5.15.16/umd/material-ui.production.min.js"
22+
src="https://unpkg.com/@mui/material@v5.16.7/umd/material-ui.production.min.js"
2323
crossorigin
2424
></script>
2525
<!-- Development
@@ -32,7 +32,7 @@
3232
crossorigin
3333
></script>
3434
<script
35-
src="https://unpkg.com/@mui/material@v5.15.16/umd/material-ui.development.js"
35+
src="https://unpkg.com/@mui/material@v5.16.7/umd/material-ui.development.js"
3636
crossorigin
3737
></script>
3838
-->
@@ -66,8 +66,8 @@
6666
deps={[
6767
"repo-review~=0.11.0",
6868
"sp-repo-review==2024.04.23",
69-
"validate-pyproject-schema-store==2024.07.29",
70-
"validate-pyproject[all]~=0.18.0",
69+
"validate-pyproject-schema-store== 2024.08.19",
70+
"validate-pyproject[all]~=0.19.0",
7171
]}
7272
/>,
7373
);

docs/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_has_tool_ruff(tmp_path: Path) -> None:
4343
# In this example, tool.ruff is required to be present by this plugin
4444
d = tmp_path / "some_package"
4545
d.mkdir()
46-
d.joinpath("pyproject.toml").write_text("[tool.ruff]")
46+
d.joinpath("pyproject.toml").write_text("[tool.ruff]", encoding="utf-8")
4747
processed = repo_review_processor.process(d)
4848
assert all(r.result for r in processed.results), f"{processed.results}"
4949
```

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cli = [
4545
]
4646
test = [
4747
"pytest >=7",
48-
"sp-repo-review >=2023.12.21",
48+
"sp-repo-review >=2024.04.23",
4949
"validate-pyproject >=0.14",
5050
]
5151
dev = [
@@ -92,7 +92,6 @@ installer = "uv"
9292
features = ["test", "cli"]
9393
env-vars.PYTHONWARNDEFAULTENCODING = "1"
9494

95-
9695
[tool.hatch.envs.lint]
9796
dependencies = ["pre-commit"]
9897
skip-install = true
@@ -181,9 +180,6 @@ messages_control.disable = [
181180
]
182181

183182

184-
[tool.ruff]
185-
src = ["src"]
186-
187183
[tool.ruff.lint]
188184
extend-select = [
189185
"B", # flake8-bugbear
@@ -227,3 +223,6 @@ typing-modules = ["repo_review._compat.typing"]
227223
[tool.ruff.lint.per-file-ignores]
228224
"src/repo_review/_compat/**.py" = ["TID251"]
229225
"src/**/__main__.py" = ["T20"]
226+
227+
[tool.repo-review]
228+
ignore = ["RF003"] # Will be flipped in next release

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def nocolor(monkeypatch: pytest.MonkeyPatch) -> None:
99
monkeypatch.delenv("FORCE_COLOR", raising=False)
1010

1111

12-
@pytest.fixture()
12+
@pytest.fixture
1313
def no_entry_points(monkeypatch: pytest.MonkeyPatch) -> None:
1414
monkeypatch.setattr(
1515
importlib.metadata,
@@ -18,7 +18,7 @@ def no_entry_points(monkeypatch: pytest.MonkeyPatch) -> None:
1818
)
1919

2020

21-
@pytest.fixture()
21+
@pytest.fixture
2222
def local_entry_points(monkeypatch: pytest.MonkeyPatch) -> None:
2323
orig_ep = importlib.metadata.entry_points
2424
ep1 = importlib.metadata.EntryPoint(

tests/test_multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from repo_review.__main__ import main
1111

1212

13-
@pytest.fixture()
13+
@pytest.fixture
1414
def multiple_packages(tmp_path: Path) -> tuple[str, str]:
1515
packages = (tmp_path / "package_1", tmp_path / "package_2")
1616

tests/test_package.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def test_broken_validate_pyproject_object(tmp_path: Path) -> None:
5555
[tool.repo-review.ignore]
5656
a2 = "some message"
5757
"""
58-
)
58+
),
59+
encoding="utf-8",
5960
)
6061

6162
results = process(tmp_path)
@@ -73,7 +74,8 @@ def test_working_validate_pyproject_object(tmp_path: Path) -> None:
7374
[tool.repo-review.ignore]
7475
PP102 = "some message"
7576
"""
76-
)
77+
),
78+
encoding="utf-8",
7779
)
7880

7981
results = process(tmp_path)

0 commit comments

Comments
 (0)