Skip to content

Commit da796a5

Browse files
authored
Merge pull request #45 from astronomy-commons/delucchi/bench_ppt
Update PTT to 2.2.0. Add single benchmark test.
2 parents 1fb783a + e70627c commit da796a5

19 files changed

+82
-106
lines changed

.copier-answers.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v2.1.1
2+
_commit: v2.2.0
33
_src_path: gh:lincc-frameworks/python-project-template
44
author_email: lincc-frameworks-team@lists.lsst.org
55
author_name: LINCC Frameworks
6-
custom_install: false
6+
create_example_module: false
7+
custom_install: custom
8+
enforce_style:
9+
- ruff_lint
10+
- ruff_format
11+
failure_notification: []
12+
include_benchmarks: true
13+
include_docs: true
14+
include_notebooks: true
15+
mypy_type_checking: none
716
package_name: hats_tap
17+
project_description: TAP(Table Access Protocol) server prototype for HATS data, queried
18+
using LSDB.
819
project_license: BSD
920
project_name: hats-tap
1021
project_organization: astronomy-commons
22+
python_versions:
23+
- '3.11'
24+
- '3.12'
25+
- '3.13'
26+
test_lowest_version: none

.github/ISSUE_TEMPLATE/1-bug_report.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ assignees: ''
1212
**Environment Information**
1313

1414

15+
<details>
16+
<summary>Traceback</summary>
17+
18+
FILL IN YOUR STACK TRACE HERE
19+
20+
</details>
21+
1522
**Before submitting**
1623
Please check the following:
1724

.github/pull_request_template.md

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,13 @@
1-
<!--
2-
Thank you for your contribution to the repo :)
3-
4-
Pull Request (PR) Instructions:
5-
Provide a general summary of your changes in the Title above. Fill out each section of the template, and replace the space with an `x` in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help! Once you are satisfied with the pull request, click the "Create pull request" button to submit it for review.
6-
7-
Before submitting this PR, please ensure that your input and responses are entered in the designated space provided below each section to keep all project-related information organized and easily accessible.
8-
9-
How to link to a PR:
10-
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
11-
-->
12-
131
## Change Description
142
<!---
15-
Describe your changes in detail. In your description, you should answer questions like "Why is this change required? What problem does it solve?".
16-
17-
If it fixes an open issue, please link to the issue here. If this PR closes an issue, put the word 'closes' before the issue link to auto-close the issue when the PR is merged.
3+
Closes #???
184
-->
19-
- [ ] My PR includes a link to the issue that I am addressing
20-
21-
225

236
## Solution Description
24-
<!-- Please explain the technical solution that I have provided and how it addresses the issue or feature being implemented -->
25-
267

278

289
## Code Quality
29-
- [ ] I have read the Contribution Guide
10+
- [ ] I have read the Contribution Guide and agree to the Code of Conduct
3011
- [ ] My code follows the code style of this project
3112
- [ ] My code builds (or compiles) cleanly without any errors or warnings
3213
- [ ] My code contains relevant comments and necessary documentation
33-
34-
## Project-Specific Pull Request Checklists
35-
<!--- Please only use the checklist that apply to your change type(s) -->
36-
37-
### Bug Fix Checklist
38-
- [ ] My fix includes a new test that breaks as a result of the bug (if possible)
39-
- [ ] My change includes a breaking change
40-
- [ ] My change includes backwards compatibility and deprecation warnings (if possible)
41-
42-
### New Feature Checklist
43-
- [ ] I have added or updated the docstrings associated with my feature using the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html)
44-
- [ ] I have updated the tutorial to highlight my new feature (if appropriate)
45-
- [ ] I have added unit/End-to-End (E2E) test cases to cover my new feature
46-
- [ ] My change includes a breaking change
47-
- [ ] My change includes backwards compatibility and deprecation warnings (if possible)
48-
49-
### Documentation Change Checklist
50-
- [ ] Any updated docstrings use the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html)
51-
52-
### Build/CI Change Checklist
53-
- [ ] If required or optional dependencies have changed (including version numbers), I have updated the README to reflect this
54-
- [ ] If this is a new CI setup, I have added the associated badge to the README
55-
56-
<!-- ### Version Change Checklist [For Future Use] -->
57-
58-
### Other Change Checklist
59-
- [ ] Any new or updated docstrings use the [NumPy docstring format](https://numpydoc.readthedocs.io/en/latest/format.html).
60-
- [ ] I have updated the tutorial to highlight my new feature (if appropriate)
61-
- [ ] I have added unit/End-to-End (E2E) test cases to cover any changes
62-
- [ ] My change includes a breaking change
63-
- [ ] My change includes backwards compatibility and deprecation warnings (if possible)

.github/workflows/asv-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches: [ main ]
99

1010
env:
11-
PYTHON_VERSION: "3.11"
11+
PYTHON_VERSION: "3.12"
1212
ASV_VERSION: "0.6.5"
1313
WORKING_DIR: ${{github.workspace}}/benchmarks
1414

.github/workflows/asv-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
env:
12-
PYTHON_VERSION: "3.11"
12+
PYTHON_VERSION: "3.12"
1313
ASV_VERSION: "0.6.5"
1414
WORKING_DIR: ${{github.workspace}}/benchmarks
1515
NIGHTLY_HASH_FILE: nightly-hash

.github/workflows/asv-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
env:
18-
PYTHON_VERSION: "3.11"
18+
PYTHON_VERSION: "3.12"
1919
ASV_VERSION: "0.6.5"
2020
WORKING_DIR: ${{github.workspace}}/benchmarks
2121
ARTIFACTS_DIR: ${{github.workspace}}/artifacts

.github/workflows/build-documentation.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v6
24-
- name: Set up Python 3.11
24+
- name: Set up Python 3.12
2525
uses: actions/setup-python@v6
2626
with:
27-
python-version: '3.11'
27+
python-version: '3.12'
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
2830
- name: Install dependencies
2931
run: |
3032
sudo apt-get update
31-
python -m pip install --upgrade pip
32-
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
33-
pip install .
33+
uv pip install --system -e .
34+
if [ -f docs/requirements.txt ]; then uv pip install --system -r docs/requirements.txt; fi
35+
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
3436
- name: Install notebook requirements
3537
run: |
3638
sudo apt-get install pandoc

.github/workflows/pre-commit-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.11'
23+
python-version: '3.12'
2424
- name: Install uv
2525
uses: astral-sh/setup-uv@v7
2626
- name: Install dependencies

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Python
2828
uses: actions/setup-python@v6
2929
with:
30-
python-version: '3.11'
30+
python-version: '3.12'
3131
- name: Install dependencies
3232
run: |
3333
python -m pip install --upgrade pip

.pre-commit-config.yaml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
# This hook should always pass. It will print a message if the local version
55
# is out of date.
66
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
7-
rev: v0.1.2
7+
rev: v0.2.2
88
hooks:
99
- id: check-lincc-frameworks-template-version
1010
name: Check template version
@@ -60,32 +60,15 @@ repos:
6060
- id: ruff-format
6161
name: Format code using ruff
6262
types_or: [ python, pyi, jupyter ]
63-
# Make sure Sphinx can build the documentation while explicitly omitting
64-
# notebooks from the docs, so users don't have to wait through the execution
65-
# of each notebook or each commit. By default, these will be checked in the
66-
# GitHub workflows.
67-
- repo: local
63+
- repo: https://github.com/lincc-frameworks/pre-commit-hooks
64+
rev: v0.2.2
6865
hooks:
69-
- id: sphinx-build
70-
name: Build documentation with Sphinx
71-
entry: sphinx-build
72-
language: system
73-
always_run: true
74-
exclude_types: [file, symlink]
66+
- id: pre-executed-nb-never-execute
67+
name: Check pre-executed notebooks
68+
files: ^docs/pre_executed/.*\.ipynb$
69+
verbose: true
7570
args:
76-
[
77-
"-M", # Run sphinx in make mode, so we can use -D flag later
78-
# Note: -M requires next 3 args to be builder, source, output
79-
"html", # Specify builder
80-
"./docs", # Source directory of documents
81-
"./_readthedocs", # Output directory for rendered documents
82-
"-T", # Show full trace back on exception
83-
"-E", # Don't use saved env; always read all files
84-
"-d", # Flag for cached environment and doctrees
85-
"./docs/_build/doctrees", # Directory
86-
"-D", # Flag to override settings in conf.py
87-
"exclude_patterns=notebooks/*,_build", # Exclude notebooks and build dir from pre-commit
88-
]
71+
["docs/pre_executed/"]
8972
# Run unit tests, verify that they pass. Note that coverage is run against
9073
# the ./src directory here because that is what will be committed. In the
9174
# github workflow script, the coverage is run against the installed package

0 commit comments

Comments
 (0)