Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
- name: Install build tool (Hatch)
run: |
python -m pip install --upgrade pip
pip install ".[testing]"
- name: tox clean and build
pip install hatch
- name: Build package with Hatch
run: |
tox -e clean
tox -e build
hatch clean
hatch build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.2.2 (2025-10-20)
## 0.2.3 (2025-10-20)

- Modernize the repo to use `pyproject.toml`.
- Update docs.
Expand Down
24 changes: 10 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
testing = [
"coverage>=7.0,<8.0",
"pycodestyle>=2.10,<3.0",
"pytest>=7.0,<8.0",
"pytest-cov>=4.0,<5.0",
"pytest-doctestplus>=1.0,<2.0",
"tox>=4.0,<5.0",
]

[project.urls]
Documentation = "https://projectpanoptes.org/"
Source = "https://github.com/panoptes/panoptes-data/"
Expand Down Expand Up @@ -78,7 +68,13 @@ line-length = 100
target-version = "py312"
src = ["src"]

[tool.pytest.ini_options]
addopts = ["--cov=panoptes.data", "--cov-report", "term-missing", "--verbose"]
norecursedirs = ["dist", "build", ".tox"]
testpaths = ["tests"]
[tool.hatch.envs.tests]
dependencies = [
"coverage>=7.0,<8.0",
"pytest>=7.0,<8.0",
"pytest-cov>=4.0,<5.0",
"pytest-doctestplus>=1.0,<2.0",
]
[tool.hatch.envs.tests.scripts]
test = "pytest"
test-cov = "pytest --cov=panoptes.data --cov-report term-missing --verbose"
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pytest configuration options previously defined in [tool.pytest.ini_options] (including norecursedirs and testpaths) have been removed. Consider adding a [tool.pytest.ini_options] section back with norecursedirs = ['dist', 'build'] and testpaths = ['tests'] to maintain the same test discovery behavior.

Suggested change
test-cov = "pytest --cov=panoptes.data --cov-report term-missing --verbose"
test-cov = "pytest --cov=panoptes.data --cov-report term-missing --verbose"
[tool.pytest.ini_options]
norecursedirs = ["dist", "build"]
testpaths = ["tests"]

Copilot uses AI. Check for mistakes.