Skip to content

Commit

Permalink
autoupdate pre-commit hooks (#42)
Browse files Browse the repository at this point in the history
* autoupdate pre-commit hooks

updates:
- [github.com/pycqa/pylint: v3.2.6 → v3.3.1](pylint-dev/pylint@v3.2.6...v3.3.1)
- [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](astral-sh/ruff-pre-commit@v0.6.3...v0.6.9)
- [github.com/PyCQA/doc8: v1.1.1 → v1.1.2](PyCQA/doc8@v1.1.1...v1.1.2)
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)

* update python in actions

* remove 3.13 because of pytables

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kevin Meagher <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and kjmeagher authored Oct 8, 2024
1 parent d4b29fa commit e23b07a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
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

0 comments on commit e23b07a

Please sign in to comment.