Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
9170d4b
refactor: align standards with the rest of the codebase
lispandfound Nov 12, 2025
1ab2830
fix: swap git extension workflow
lispandfound Nov 12, 2025
8e5076b
fix: target branches correctly
lispandfound Nov 12, 2025
2ac1f00
fix: remove GMT installation
lispandfound Nov 12, 2025
716c604
fix: use python 3.13
lispandfound Nov 12, 2025
73d83ba
fix: add coverage extension to pytest
lispandfound Nov 12, 2025
3db0a8d
fix: use python 3.13 for deptry
lispandfound Nov 12, 2025
d4c24f2
fix: make deptry happy
lispandfound Nov 12, 2025
225e7cc
fix: types should target master
lispandfound Nov 12, 2025
66e1cc6
fix: satisfy ty checks
lispandfound Nov 12, 2025
ddf4278
tests: improve test coverage for cli + coordinates
lispandfound Nov 12, 2025
b9c06a8
fix: better python gitignore
lispandfound Nov 12, 2025
dfc7fd8
ci: disable coverage for a bunch of modules
lispandfound Nov 12, 2025
9a6c2a2
trigger ci
lispandfound Nov 12, 2025
027d15e
tests(distributions): add distribution testing
lispandfound Nov 13, 2025
ab985eb
docs(distributions): improve typing and docstrings
lispandfound Nov 13, 2025
72b4b5c
fix: add test coverage for NZGMDB function
lispandfound Nov 13, 2025
8f82186
tests(distributions): add missing distributions tests
lispandfound Nov 13, 2025
052836c
refactor(timeseries): remove unused function
lispandfound Nov 13, 2025
34bfe8d
tests: add test coverage for non-omitted modules (#359)
Copilot Nov 13, 2025
20be0d9
tests(geo): fix tests for geo module
lispandfound Nov 13, 2025
a3ede1c
fix(test_geo): be a little more relaxed with floating point comparisons
lispandfound Nov 13, 2025
c937a1e
tests: add test coverage for omitted modules (#360)
Copilot Nov 13, 2025
78f7682
ci: add coverage checks for the remaining modules
lispandfound Nov 13, 2025
e6427b8
Merge branch 'type_checking' of github.com:ucgmsim/qcore into type_ch…
lispandfound Nov 13, 2025
400d5b9
docs: appease numpydoc
lispandfound Nov 13, 2025
0a43886
fix: add basic check for `load_nhm`
lispandfound Nov 13, 2025
5de292b
fix: coverage exclude numba functions
lispandfound Nov 13, 2025
33581b7
fix: type check fixes
lispandfound Nov 20, 2025
6718b2b
ci: remove unused filelock dependency
lispandfound Nov 20, 2025
830061d
fix: revert removal of gc2 distance calculations
lispandfound Nov 20, 2025
e927575
fix: type-checking fixes
lispandfound Nov 20, 2025
f536979
fix: add typing stubs
lispandfound Nov 21, 2025
4339ec9
fix: deptry install and dependencies
lispandfound Nov 23, 2025
e449dc9
fix(geo): typo in arctan2 compute
lispandfound Nov 23, 2025
4ab1d6c
fix(point_in_polygon): better type variable assignment
lispandfound Nov 23, 2025
f55b975
deps: remove unused requests dependency
lispandfound Nov 23, 2025
5a68036
fix(geo): avg_wbearing does not need quartile correction
lispandfound Nov 23, 2025
4d5a99b
ci: update version number
lispandfound Dec 3, 2025
d1ea806
Merge branch 'master' into type_checking
lispandfound Dec 18, 2025
551be61
chore: update pyproject.toml to fix duplicate and conflicting fields
lispandfound Dec 18, 2025
7af5c87
fix: backport deprecated decorator
lispandfound Jan 6, 2026
a678f64
deps: fix numba bounds
lispandfound Jan 6, 2026
ad9dc9d
fix: type checking fixes
lispandfound Jan 6, 2026
aa54cc8
tests(cli): clean docstrings before comparison
lispandfound Jan 6, 2026
eb047a5
fix: add typing module
lispandfound Jan 6, 2026
83d3447
refactor: delete and deprecate old functions
lispandfound Jan 6, 2026
4f16146
fix: ruff fixes
lispandfound Jan 6, 2026
6f46504
fix(geo): syntax fixes
lispandfound Jan 6, 2026
679f825
fix(geo): ruff fixes
lispandfound Jan 6, 2026
c68fcfc
tests: remove srf tests
lispandfound Jan 6, 2026
589592c
tests(geo): remove tests for deleted functions
lispandfound Jan 6, 2026
22cdd10
fix: re-add ll_cross_along_track_dist
lispandfound Jan 7, 2026
8033539
tests: skip broken cli tests
lispandfound Jan 7, 2026
c1eaf88
fix: revert pyproject.toml
lispandfound Jan 7, 2026
bd55f4a
fix: revert pyproject.toml
lispandfound Jan 7, 2026
ffa32b2
fix(constants): broken syntax
lispandfound Jan 7, 2026
44062ff
fix(constants): ruff fixes
lispandfound Jan 7, 2026
3442b49
fix(geo): import acos
lispandfound Jan 7, 2026
0453b96
Merge branch 'master' into remove_old_functions
lispandfound Jan 7, 2026
b49bcf1
Pull out testing changes
lispandfound Jan 7, 2026
a360aa4
Merge branch 'remove_old_functions' into testing_infra_refactor
lispandfound Jan 7, 2026
b22be00
fix(simulation_structure): add get_runs_dir back
lispandfound Jan 7, 2026
0c942e0
Merge branch 'remove_old_functions' into testing_infra_refactor
lispandfound Jan 7, 2026
f94e661
ci: simplify pytest and deptry jobs
lispandfound Jan 7, 2026
f7e40b2
ci: add uv.lock for reproducible CI builds
lispandfound Jan 7, 2026
1915827
build: add MANIFEST.in to exclude tests, .github, wiki, and uv.lock
lispandfound Jan 7, 2026
3dd1038
tests: remove broken distributions test
lispandfound Jan 7, 2026
8fb33b7
fix: revert test_coordinates to remove_old_functions
lispandfound Jan 7, 2026
6996c49
fix: revert test_geo.py to remove_old_functions
lispandfound Jan 7, 2026
c56e4d9
tests: remove broken tests
lispandfound Jan 7, 2026
d628997
fix: fix pyproject warnings
lispandfound Jan 7, 2026
bc53ed6
refactor: remove config and registry
lispandfound Jan 7, 2026
be54ea3
Merge branch 'remove_old_functions' into testing_infra_refactor
lispandfound Jan 7, 2026
6ae2088
ci: remove ruff action for now
lispandfound Jan 7, 2026
22fecb6
tests: add missing test files
lispandfound Jan 8, 2026
38ae553
Revert "tests: add missing test files"
lispandfound Jan 8, 2026
1e719ca
Merge branch 'master' into testing_infra_refactor
lispandfound Jan 20, 2026
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
17 changes: 17 additions & 0 deletions .github/workflows/deptry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deptry Dependency Check

on: [pull_request]

jobs:
dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup the minimum required python distribution
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup uv
uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras
- run: uv run deptry .
61 changes: 47 additions & 14 deletions .github/workflows/git-extension.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,51 @@
name: Check requirements.txt git URLs are properly formatted

on: pull_request

permissions:
contents: read
pull-requests: write
name: Check Git Dependencies

on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
check-git-deps:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: sed -i '/git\+/ { /\.git$/! s/$/.git/ }' requirements.txt
- uses: parkerbxyz/suggest-changes@v2
with:
comment: 'Please change the following dependencies for consistency.'
event: 'REQUEST_CHANGES'
- name: Checkout repository
uses: actions/checkout@v4


- name: Set up Python
uses: actions/setup-python@v4

- name: Run Git dependency check
run: |
import tomllib
from pathlib import Path
import sys

pyproject_path = Path("pyproject.toml")
if not pyproject_path.exists():
print("Error: pyproject.toml not found in the current directory.")
sys.exit(1)

with open(pyproject_path, "rb") as f:
config = tomllib.load(f)

issues = []
for section in ["project", "project.optional-dependencies"]:
if section in config and "dependencies" in config[section]:
deps = config[section]["dependencies"]
for dep in deps:
if "git+https://" in dep and not dep.endswith(".git"):
issues.append(dep)

if issues:
print("The following git dependencies are missing the .git extension:")
for issue in issues:
print(f" - {issue}")
sys.exit(1)
else:
print("All git dependencies are correctly formatted.")
shell: python
62 changes: 0 additions & 62 deletions .github/workflows/publish-PyPi.yml

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Pytest Check

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Install the project
run: uv sync --all-extras

- name: Run tests
run: uv run pytest --cov=qcore --cov-report=html tests

- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
name: coverage-data
path: .coverage
include-hidden-files: true
if-no-files-found: ignore

coverage:
needs: test
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Install dependencies
run: |
python -m pip install --upgrade coverage[toml]

- name: Download coverage data
uses: actions/download-artifact@v4
with:
name: coverage-data

- name: Combine coverage and fail it it’s under 100 %
run: |
python -m coverage html --skip-covered --skip-empty

# Report and write to summary.
python -m coverage report | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY

# Report again and fail if under 95%.
python -Im coverage report --fail-under=95

- name: Upload HTML report if check failed
uses: actions/upload-artifact@v4

with:
name: html-report
path: htmlcov

if: ${{ failure() }}
Loading
Loading