Skip to content

Commit

Permalink
Merge pull request #21 from datalad/contributing
Browse files Browse the repository at this point in the history
Contributing
  • Loading branch information
mih authored Jun 11, 2024
2 parents 282ce56 + 7a4eb32 commit f535779
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist/
.coverage
docs/generated
docs/_build
*.swp
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ Here are a few pointers. For full detail, see the hatch docs.
hatch test [--cover]
```

### Build the HTML documentation (under `docs/_build/html`)

```
hatch run docs:build
# clean with
hatch run docs:clean
```

### Check type annotations

```
hatch run types:check
```

### Check the `datasalad` version

`hatch` determines the version from the VCS tags. This can help check that
Expand Down
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,23 @@ extra-dependencies = [
"argcomplete",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/datasalad tests}"
check = [
"mypy --install-types --non-interactive --python-version 3.8 --pretty --show-error-context datasalad",
]

[tool.hatch.envs.docs]
extra-dependencies = [
"sphinx",
]
[tool.hatch.envs.docs.scripts]
build = [
"make -C docs html",
]
clean = [
"rm -rf docs/generated",
"make -C docs clean",
]


[tool.coverage.run]
source_pkgs = ["datasalad", "tests"]
Expand Down

0 comments on commit f535779

Please sign in to comment.