Skip to content

Commit 4005877

Browse files
PEP 735 compliance
1 parent 94b4cd7 commit 4005877

5 files changed

Lines changed: 31 additions & 27 deletions

File tree

.github/workflows/docker_build.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python-version: "3.11"
3939

4040
- name: Install neurodocker
41-
run: python -m pip install --editable .[dev]
41+
run: python -m pip install --editable --group [dev]
4242

4343
- name: Generate Dockerfile
4444
run: |

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
python-version: '3.10'
1717
- name: Install neurodocker
18-
run: python -m pip install --editable .[all]
18+
run: python -m pip install --editable . --group all
1919
- name: build docs
2020
run: |
2121
make -C docs cli

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python-version: ${{ matrix.python-version }}
3939
allow-prereleases: true
4040
- name: Install neurodocker
41-
run: python -m pip install --editable .[dev]
41+
run: python -m pip install --editable . --group dev
4242
- name: Run python tests
4343
run: pytest --numprocesses auto
4444
- name: Get code coverage

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Clone the repository and install in editable mode.
5252
```
5353
git clone https://github.com/ReproNim/neurodocker
5454
cd neurodocker
55-
python -m pip install --no-cache-dir --editable .[all]
55+
python -m pip install --no-cache-dir --editable . --group all
5656
```
5757

5858
Before committing changes, initialize `pre-commit` with `pre-commit install`. This will format code with each commit to keep the style consistent. _Neurodocker_ uses `black` for formatting.

pyproject.toml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22
build-backend = "hatchling.build"
33
requires = ["hatchling>=1.27.0", "hatch-vcs"]
44

5+
[dependency-groups]
6+
all = [
7+
{include-group = "dev"},
8+
{include-group = "doc"},
9+
{include-group = "minify"}
10+
]
11+
dev = [
12+
{include-group = "minify"},
13+
"codecov",
14+
"coverage[toml]",
15+
"mypy",
16+
"pre-commit",
17+
"pytest >= 6.0",
18+
"pytest-cov >= 2.0.0",
19+
"pytest-reportlog >= 0.1.2",
20+
"pytest-xdist >= 2.2.0",
21+
"types-PyYAML"
22+
]
23+
doc = [
24+
"sphinx <7",
25+
"pydata-sphinx-theme >= 0.13",
26+
"sphinxcontrib.apidoc >= 0.3"
27+
]
28+
minify = [
29+
"docker >= 4.4.1"
30+
]
31+
532
[project]
633
authors = [{name = "Neurodocker Developers"}]
734
classifiers = [
@@ -37,29 +64,6 @@ name = "neurodocker"
3764
readme = "README.md"
3865
requires-python = ">=3.10"
3966

40-
[project.optional-dependencies]
41-
all = ["neurodocker[minify,dev,doc]"]
42-
dev = [
43-
"neurodocker[minify]",
44-
"codecov",
45-
"coverage[toml]",
46-
"mypy",
47-
"pre-commit",
48-
"pytest >= 6.0",
49-
"pytest-cov >= 2.0.0",
50-
"pytest-reportlog >= 0.1.2",
51-
"pytest-xdist >= 2.2.0",
52-
"types-PyYAML"
53-
]
54-
doc = [
55-
"sphinx <7",
56-
"pydata-sphinx-theme >= 0.13",
57-
"sphinxcontrib.apidoc >= 0.3"
58-
]
59-
minify = [
60-
"docker >= 4.4.1"
61-
]
62-
6367
[project.scripts]
6468
neurodocker = "neurodocker.cli.cli:cli"
6569

0 commit comments

Comments
 (0)