Skip to content

Commit 08ef75a

Browse files
PEP 735 compliance
1 parent 4a50762 commit 08ef75a

5 files changed

Lines changed: 11 additions & 7 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: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ name = "neurodocker"
3737
readme = "README.md"
3838
requires-python = ">=3.10"
3939

40-
[project.optional-dependencies]
41-
all = ["neurodocker[minify,dev,doc]"]
40+
[dependency-groups]
41+
all = [
42+
{include-group = "dev"},
43+
{include-group = "doc"},
44+
{include-group = "minify"}
45+
]
4246
dev = [
43-
"neurodocker[minify]",
47+
{include-group = "minify"},
4448
"codecov",
4549
"coverage[toml]",
4650
"mypy",

0 commit comments

Comments
 (0)