@@ -37,19 +37,40 @@ dependencies = [
37
37
" typing-extensions; python_version < '3.11'" ,
38
38
]
39
39
40
+ [project .urls ]
41
+ Changelog = " https://github.com/scientific-python/repo-review/releases"
42
+ Demo = " https://scientific-python.github.io/repo-review"
43
+ Documentation = " https://repo-review.readthedocs.io"
44
+ Homepage = " https://repo-review.readthedocs.io"
45
+ Source = " https://github.com/scientific-python/repo-review"
46
+
47
+ [project .scripts ]
48
+ repo-review = " repo_review.__main__:main"
49
+
50
+ [project .entry-points ."repo_review .fixtures" ]
51
+ pyproject = " repo_review.fixtures:pyproject"
52
+ list_all = " repo_review.fixtures:list_all"
53
+
54
+ [project .entry-points ."validate_pyproject .tool_schema" ]
55
+ repo-review = " repo_review.schema:get_schema"
56
+
40
57
[project .optional-dependencies ]
41
58
cli = [
42
59
" click >=8" ,
43
60
" rich >=12.2" ,
44
61
" rich-click" ,
45
62
]
63
+
64
+ [dependency-groups ]
46
65
test = [
47
66
" pytest >=7" ,
48
67
" sp-repo-review >=2024.08.19" ,
49
68
" validate-pyproject >=0.14" ,
50
69
]
51
70
dev = [
52
- " repo-review[test,cli]" ,
71
+ { include-group = " test" },
72
+ " sp-repo-review[cli]" ,
73
+ " validate-pyproject-schema-store[all]" ,
53
74
]
54
75
docs = [
55
76
" furo" ,
@@ -63,24 +84,6 @@ docs = [
63
84
" sphinx-github-changelog" ,
64
85
]
65
86
66
- [project .urls ]
67
- Changelog = " https://github.com/scientific-python/repo-review/releases"
68
- Demo = " https://scientific-python.github.io/repo-review"
69
- Documentation = " https://repo-review.readthedocs.io"
70
- Homepage = " https://repo-review.readthedocs.io"
71
- Source = " https://github.com/scientific-python/repo-review"
72
-
73
- [project .scripts ]
74
- repo-review = " repo_review.__main__:main"
75
-
76
- [project .entry-points ."repo_review .fixtures" ]
77
- pyproject = " repo_review.fixtures:pyproject"
78
- list_all = " repo_review.fixtures:list_all"
79
-
80
- [project .entry-points ."validate_pyproject .tool_schema" ]
81
- repo-review = " repo_review.schema:get_schema"
82
-
83
-
84
87
[tool .hatch ]
85
88
version.source = " vcs"
86
89
build.hooks.vcs.version-file = " src/repo_review/_version.py"
@@ -89,7 +92,13 @@ build.hooks.vcs.version-file = "src/repo_review/_version.py"
89
92
installer = " uv"
90
93
91
94
[tool .hatch .envs .hatch-test ]
92
- features = [" test" , " cli" ]
95
+ features = [" cli" ]
96
+ # duplicated since hatch doesn't support groups yet
97
+ dependencies = [
98
+ " pytest >=7" ,
99
+ " sp-repo-review >=2024.08.19" ,
100
+ " validate-pyproject >=0.14" ,
101
+ ]
93
102
env-vars.PYTHONWARNDEFAULTENCODING = " 1"
94
103
95
104
[tool .hatch .envs .lint ]
@@ -103,8 +112,19 @@ dependencies = ["pylint>=3.2"]
103
112
scripts.lint = " pylint repo_review {args}"
104
113
105
114
[tool .hatch .envs .docs ]
106
- features = [" docs" ]
107
- dependencies = [" sphinx-autobuild" ]
115
+ # duplicated since hatch doesn't support groups yet
116
+ dependencies = [
117
+ " furo" ,
118
+ " myst_parser >=0.13" ,
119
+ " repo-review[cli]" ,
120
+ " sphinx >=4.0" ,
121
+ " sphinx-autodoc-typehints" ,
122
+ " sphinx-copybutton" ,
123
+ " sphinxcontrib-programoutput" ,
124
+ " sphinxext-opengraph" ,
125
+ " sphinx-github-changelog" ,
126
+ " sphinx-autobuild" ,
127
+ ]
108
128
scripts.linkcheck = " sphinx-build -b=linkcheck docs docs/_build/linkcheck {args}"
109
129
scripts.html = " sphinx-build --keep-going -n -T -b=html docs docs/_build/html {args}"
110
130
scripts.serve = " sphinx-autobuild -n -T -b=html docs docs/_build/html {args}"
0 commit comments