Skip to content

Commit

Permalink
build: bump from scientific-python/cookie update (GalacticDynamics#268)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <[email protected]>
  • Loading branch information
nstarman authored Apr 27, 2024
1 parent 0557b93 commit bfa3928
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 2023.10.27
_commit: 2024.04.23
_src_path: gh:scientific-python/cookie
backend: hatch
email: [email protected]
full_name: galax maintainers
license: MIT
org: galax
org: GalacticDynamics
project_name: galax
project_short_description: Galactic Dynamix in Jax.
project_short_description: Galactic Dynamics in Jax.
url: https://github.com/GalacticDynamics/galax
vcs: true
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ specific jobs:
```console
$ nox -s lint # Lint only
$ nox -s tests # Python tests
$ nox -s docs -- serve # Build and serve the docs
$ nox -s docs -- --serve # Build and serve the docs
$ nox -s build # Make an SDist and wheel
```

Expand Down Expand Up @@ -85,7 +85,7 @@ nox -s docs
You can see a preview with:

```bash
nox -s docs -- serve
nox -s docs -- --serve
```

# Pre-commit
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ concurrency:
cancel-in-progress: true

env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3

jobs:
Expand All @@ -27,15 +29,7 @@ jobs:
with:
fetch-depth: 0

- name: Build sdist and wheel
run: pipx run build

- uses: actions/upload-artifact@v4
with:
path: dist

- name: Check products
run: pipx run twine check dist/*
- uses: hynek/build-and-inspect-python-package@v2

publish:
needs: [dist]
Expand All @@ -49,7 +43,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
name: Packages
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ concurrency:
cancel-in-progress: true

env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3

jobs:
Expand Down Expand Up @@ -118,3 +120,5 @@ jobs:
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ repos:
rev: "1.16.0"
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]
additional_dependencies: [black==24.*]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
rev: "v3.1.0"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand All @@ -90,9 +90,10 @@ repos:
exclude: ^(notebooks|AUTHORS\.rst)$

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: "v0.16"
hooks:
- id: validate-pyproject
additional_dependencies: ["validate-pyproject-schema-store[all]"]

- repo: local
hooks:
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

DIR = Path(__file__).parent.resolve()

nox.needs_version = ">=2024.3.2"
nox.options.sessions = ["lint", "tests", "doctests"]
nox.options.default_venv_backend = "uv|virtualenv"


@nox.session
Expand Down
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ dependencies = [
"typing_extensions >= 4.11",
"unxt @ git+https://github.com/GalacticDynamics/unxt.git",
]
description = "Galactic Dynamix in Jax."
description = "Galactic Dynamics in Jax."
dynamic = ["version"]
name = "galax"
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.11"

[project.optional-dependencies]
Expand Down Expand Up @@ -85,10 +86,14 @@ Homepage = "https://github.com/GalacticDynamics/galax"

[tool.hatch]
build.hooks.vcs.version-file = "src/galax/_version.py"
envs.default.dependencies = ["pytest", "pytest-cov"]
metadata.allow-direct-references = true
version.source = "vcs"

[tool.hatch.envs.default]
dependencies = ["pytest", "pytest-cov"]
features = ["test"]
scripts.test = "pytest {args}"


[tool.pytest.ini_options]
addopts = [
Expand All @@ -115,9 +120,7 @@ xfail_strict = true

[tool.coverage]
run.source = ["galax"]

[tool.coverage.report]
exclude_also = [
report.exclude_also = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Ignore type-checking stuff
Expand Down

0 comments on commit bfa3928

Please sign in to comment.