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
14 changes: 9 additions & 5 deletions .github/workflows/test_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:

jobs:
tests:
if: "!contains(github.event.pull_request.labels.*.name, 'auto-pr')"
env:
ENV_NAME: tests
PYTHON: ${{ matrix.python-version }}
Expand All @@ -23,26 +22,31 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9, "3.10", "3.11", "3.12"]
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: 13
- name: Install
run: pip install .[dev]
run: uv sync --locked --all-extras --dev
- name: Run Tests
run: |
python -m pytest --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25
uv run pytest --cov-report xml:./coverage.xml --durations=25
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && success() && !contains(github.event.pull_request.labels.*.name, 'auto-pr')
if: matrix.os == 'ubuntu-latest' && success()
with:
files: ./coverage.xml # optional
fail_ci_if_error: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/warnings-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,29 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ["3.14"]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: 13
- name: Install
run: pip install .[dev]
run: uv sync --locked --all-extras --dev
- name: Run Tests
run: |
python -m pytest -Werror --cov=hmf --cov-config=.coveragerc --cov-report xml:./coverage.xml --durations=25
uv run pytest -Werror --cov-report xml:./coverage.xml --durations=25
- uses: codecov/codecov-action@v5
if: matrix.os == 'ubuntu-latest' && success()
with:
Expand Down
11 changes: 0 additions & 11 deletions .isort.cfg

This file was deleted.

39 changes: 12 additions & 27 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,21 @@ repos:
- id: requirements-txt-fixer
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://github.com/PyCQA/flake8
rev: '7.3.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies:
- flake8-rst-docstrings
- flake8-docstrings
- flake8-builtins
- flake8-rst-docstrings
- flake8-rst
- flake8-markdown
- flake8-bugbear
- flake8-comprehensions
- flake8-print
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2


- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.14
hooks:
- id: pyupgrade
args: [--py38-plus]
# Run the linter.
- id: ruff
args: [--fix]

# Run the formatter.
- id: ruff-format
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ conda:
environment: docs/environment.yaml

python:
version: 3.7
version: 3.13
install:
- method: pip
path: .
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

24 changes: 0 additions & 24 deletions changethelog.py

This file was deleted.

Loading
Loading