Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
python-version: "3.11"

- name: Install neurodocker
run: python -m pip install --editable .[dev]
run: python -m pip install --editable . --group test

- name: Generate Dockerfile
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: '3.10'
- name: Install neurodocker
run: python -m pip install --editable .[all]
run: python -m pip install --editable . --group doc
- name: build docs
run: |
make -C docs cli
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install neurodocker
run: python -m pip install --editable .[dev]
run: python -m pip install --editable . --group test
- name: Run python tests
run: pytest --numprocesses auto
- name: Get code coverage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Clone the repository and install in editable mode.
```
git clone https://github.com/ReproNim/neurodocker
cd neurodocker
python -m pip install --no-cache-dir --editable .[all]
python -m pip install --no-cache-dir --editable . --group dev
```

Before committing changes, initialize `prek` with `prek install`, or `pre-commit` with `pre-commit install`. This will format code with each commit to keep the style consistent. _Neurodocker_ uses `ruff` for formatting.
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
build-backend = "hatchling.build"
requires = ["hatchling>=1.27.0", "hatch-vcs"]

[dependency-groups]
dev = [
{include-group = "doc"},
{include-group = "minify"},
{include-group = "test"}
]
doc = [
"sphinx <7",
"pydata-sphinx-theme >= 0.13",
"sphinxcontrib.apidoc >= 0.3"
]
minify = [
"docker >= 4.4.1"
]
test = [
{include-group = "minify"},
"codecov",
"coverage[toml]",
Comment thread
DimitriPapadopoulos marked this conversation as resolved.
"mypy",
"pre-commit",
"pytest >= 6.0",
"pytest-cov >= 2.0.0",
"pytest-reportlog >= 0.1.2",
"pytest-xdist >= 2.2.0",
"types-PyYAML"
Comment thread
DimitriPapadopoulos marked this conversation as resolved.
]

[project]
authors = [{name = "Neurodocker Developers"}]
classifiers = [
Expand Down
Loading