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
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-24.04]
include:
- python-version: "3.12"
os: macos-13
os: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
hooks:
- id: codespell
- repo: https://github.com/adamchainz/blacken-docs
rev: "1.18.0"
rev: "1.19.0"
hooks:
- id: blacken-docs
args: [-l 100]
Expand All @@ -36,20 +36,20 @@ repos:
additional_dependencies: [numpy]
exclude: ^contrib/
- repo: https://github.com/pycqa/pylint
rev: v3.2.6
rev: v3.3.1
hooks:
- id: pylint
files: simweights
exclude: ^contrib/
additional_dependencies: [numpy, pandas]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/PyCQA/doc8
rev: "v1.1.1"
rev: "v1.1.2"
hooks:
- id: doc8
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -68,7 +68,7 @@ repos:
- id: forbid-crlf
- id: forbid-tabs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-builtin-literals
Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@ keywords = ["python", "science", "astronomy", "astrophysics", "IceCube", "neutri
license = {file = "LICENSES/BSD-2-Clause.txt"}
name = "simweights"
readme = "README.rst"
requires-python = "~=3.7"
requires-python = "~=3.8"

[project.optional-dependencies]
dev = ["pytest", "pre-commit", "reuse", "black", "ruff", "pylint", "mypy"]
docs = ["sphinx", "sphinx-rtd-theme", "pandas"]
examples = ['matplotlib']
test = [
"h5py",
"tables < 3.8; python_version < '3.9'",
"tables",
"pandas",
"uproot",
Expand Down Expand Up @@ -78,7 +77,7 @@ warn_unreachable = true
max-line-length = "128"

[tool.pylint.messages_control]
disable = "C0114,R0902,R0913"
disable = "C0114,R0902,R0913,R0917"

[tool.pytest.ini_options]
addopts = ["-ra", "--strict-config", "--strict-markers", "--cov=simweights", "-W ignore"]
Expand All @@ -91,8 +90,6 @@ xfail_strict = true
[tool.ruff]
line-length = 128
namespace-packages = ["examples", "contrib", "docs"]
src = ["src"]
target-version = "py38"

[tool.ruff.lint]
fixable = ["I"]
Expand Down Expand Up @@ -130,7 +127,7 @@ convention = "google"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py3{8,9,10,11,12}
envlist = py3{9,10,11,12,13}
isolated_build = True

[testenv]
Expand Down