You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,7 +13,7 @@ Construct a `numpy`-based Python project from scratch for scientific computing a
13
13
## :wrench: Features
14
14
15
15
-[Numpy](https://numpy.org/) a basic installation for the holy trifecta :dove: of `numpy, matplotlib, scipy`.
16
-
-[PDM](https://pdm-project.org) for dependency, virtualenv, and package management.
16
+
-[pdm](https://pdm-project.org) or [uv](https://docs.astral.sh/uv/) for dependency, virtualenv, and package management.
17
17
-[Mkdocs material](https://squidfunk.github.io/mkdocs-material/) for simple, clean, automated, online code documentation.
18
18
-[pre-commit](https://github.com/pre-commit/pre-commit) with [ruff](https://github.com/astral-sh/ruff) integration for code linting and formatting.
19
19
-[pytest](https://docs.pytest.org/en/stable/index.html#) with [coverage](https://pytest-cov.readthedocs.io/en/latest/) for regression testing and code coverage.
@@ -22,24 +22,23 @@ Construct a `numpy`-based Python project from scratch for scientific computing a
22
22
-[Github actions](https://docs.github.com/en/actions) for automated, build, test, and deployment.
That's it! Follow the questionnaire and then your `numpy`-based scientific computing project is ready to go.
36
35
37
36
***Note:*** The `--trust` flag enables extensions used in this template. Please see [extensions.py](extensions.py) and [setup_github.py](setup_github.py) to make sure you trust this template (*spoiler:* these just add some global template variables and some basic `git` scripting).
38
37
39
38
## :snake: Publishing on PyPI
40
39
Follow [this tutorial](https://docs.pypi.org/trusted-publishers/) to enable trusted publishing with Github actions. Then, do:
41
40
```shell
42
-
pdm bump
41
+
cz bump
43
42
```
44
43
That's it! Your package will automatically deploy to PyPI and GitHub with a correctly-versioned `vX.X.X` tag.
Copy file name to clipboardExpand all lines: TODO.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,16 @@
25
25
-[x] Newly copied repo should install pre-commit and setup
26
26
-[x] Add license file automatically
27
27
-[ ] Option in `setup_github.py` to detect and change who is logged in to gh CLI (or exit)
28
-
-[] Migrate amisc/uqtils to this template and check the usage of `copier update`.
28
+
-[x] Migrate amisc/uqtils to this template and check the usage of `copier update`.
29
29
-[x] Make sure this all works in linux too (works on ubuntu at least)
30
30
31
+
# Agents
32
+
-[ ] Look into templates for agent skills and configuration.
33
+
31
34
# General workflow
32
-
1. User should be running `pdm test` and `pdm lint` to make sure their code works and is up to snuff.
35
+
1. User should be running `dev.py test` and `dev.py lint` to make sure their code works and is up to snuff.
33
36
1.`pre-commit` will lint, check for sensitive data, check for an up to date `pytest` run, etc. and check that commit message is formatted correctly. Will block if lint or tests failed. README coverage badge automatically updated after `pytest`.
34
37
1. Then the user manually fixes lint/test errors. Can also use `ruff check --fix` to automatically fix lint errors. No formatting is forced at this time but would be easy with `ruff format`.
35
38
1. On pull request to main, a GHA will run all the `pytest` and `ruff checks` again on multiple versions/platforms.
36
39
1. On commit to main, another test-coverage is generated and read into automatic gh-pages deploy for coverage report.
37
-
1. With a manual `pdm bump`, a new tag/version/release/changelog/build are generated from commit history and released. Uses `commitizen` under the hood to manage this.
40
+
1. With a manual `cz bump`, a new tag/version/release/changelog/build are generated from commit history and released.
0 commit comments