Skip to content

Commit

Permalink
update python in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmeagher committed Oct 8, 2024
1 parent abd6589 commit 9fb5d6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 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", "3.13"]
os: [ubuntu-24.04]
include:
- python-version: "3.12"
os: macos-13
- python-version: "3.13"
os: macos-14
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .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 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

0 comments on commit 9fb5d6d

Please sign in to comment.