File tree Expand file tree Collapse file tree 7 files changed +18
-17
lines changed Expand file tree Collapse file tree 7 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 11
11
additional_dependencies : [black==23.*]
12
12
13
13
- repo : https://github.com/astral-sh/ruff-pre-commit
14
- rev : " v0.5.6 "
14
+ rev : " v0.6.1 "
15
15
hooks :
16
16
- id : ruff
17
17
args : ["--fix", "--show-fixes"]
Original file line number Diff line number Diff line change 6
6
content ="initial-scale=1, width=device-width "
7
7
/>
8
8
< 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 "
10
10
crossorigin
11
11
> </ script >
12
12
<!-- Production -->
19
19
crossorigin
20
20
> </ script >
21
21
< 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 "
23
23
crossorigin
24
24
> </ script >
25
25
<!-- Development
32
32
crossorigin
33
33
></script>
34
34
<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"
36
36
crossorigin
37
37
></script>
38
38
-->
66
66
deps = { [
67
67
"repo-review~=0.11.0" ,
68
68
"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" ,
71
71
] }
72
72
/> ,
73
73
) ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_has_tool_ruff(tmp_path: Path) -> None:
43
43
# In this example, tool.ruff is required to be present by this plugin
44
44
d = tmp_path / " some_package"
45
45
d.mkdir()
46
- d.joinpath(" pyproject.toml" ).write_text(" [tool.ruff]" )
46
+ d.joinpath(" pyproject.toml" ).write_text(" [tool.ruff]" , encoding = " utf-8 " )
47
47
processed = repo_review_processor.process(d)
48
48
assert all (r.result for r in processed.results), f " { processed.results} "
49
49
```
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ cli = [
45
45
]
46
46
test = [
47
47
" pytest >=7" ,
48
- " sp-repo-review >=2023.12.21 " ,
48
+ " sp-repo-review >=2024.04.23 " ,
49
49
" validate-pyproject >=0.14" ,
50
50
]
51
51
dev = [
@@ -92,7 +92,6 @@ installer = "uv"
92
92
features = [" test" , " cli" ]
93
93
env-vars.PYTHONWARNDEFAULTENCODING = " 1"
94
94
95
-
96
95
[tool .hatch .envs .lint ]
97
96
dependencies = [" pre-commit" ]
98
97
skip-install = true
@@ -181,9 +180,6 @@ messages_control.disable = [
181
180
]
182
181
183
182
184
- [tool .ruff ]
185
- src = [" src" ]
186
-
187
183
[tool .ruff .lint ]
188
184
extend-select = [
189
185
" B" , # flake8-bugbear
@@ -227,3 +223,6 @@ typing-modules = ["repo_review._compat.typing"]
227
223
[tool .ruff .lint .per-file-ignores ]
228
224
"src/repo_review/_compat/**.py" = [" TID251" ]
229
225
"src/**/__main__.py" = [" T20" ]
226
+
227
+ [tool .repo-review ]
228
+ ignore = [" RF003" ] # Will be flipped in next release
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def nocolor(monkeypatch: pytest.MonkeyPatch) -> None:
9
9
monkeypatch .delenv ("FORCE_COLOR" , raising = False )
10
10
11
11
12
- @pytest .fixture ()
12
+ @pytest .fixture
13
13
def no_entry_points (monkeypatch : pytest .MonkeyPatch ) -> None :
14
14
monkeypatch .setattr (
15
15
importlib .metadata ,
@@ -18,7 +18,7 @@ def no_entry_points(monkeypatch: pytest.MonkeyPatch) -> None:
18
18
)
19
19
20
20
21
- @pytest .fixture ()
21
+ @pytest .fixture
22
22
def local_entry_points (monkeypatch : pytest .MonkeyPatch ) -> None :
23
23
orig_ep = importlib .metadata .entry_points
24
24
ep1 = importlib .metadata .EntryPoint (
Original file line number Diff line number Diff line change 10
10
from repo_review .__main__ import main
11
11
12
12
13
- @pytest .fixture ()
13
+ @pytest .fixture
14
14
def multiple_packages (tmp_path : Path ) -> tuple [str , str ]:
15
15
packages = (tmp_path / "package_1" , tmp_path / "package_2" )
16
16
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ def test_broken_validate_pyproject_object(tmp_path: Path) -> None:
55
55
[tool.repo-review.ignore]
56
56
a2 = "some message"
57
57
"""
58
- )
58
+ ),
59
+ encoding = "utf-8" ,
59
60
)
60
61
61
62
results = process (tmp_path )
@@ -73,7 +74,8 @@ def test_working_validate_pyproject_object(tmp_path: Path) -> None:
73
74
[tool.repo-review.ignore]
74
75
PP102 = "some message"
75
76
"""
76
- )
77
+ ),
78
+ encoding = "utf-8" ,
77
79
)
78
80
79
81
results = process (tmp_path )
You can’t perform that action at this time.
0 commit comments