From e23b07ae718e128e17d99c2884f0ae9471eeed20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:02:32 -0500 Subject: [PATCH] autoupdate pre-commit hooks (#42) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * autoupdate pre-commit hooks updates: - [github.com/pycqa/pylint: v3.2.6 → v3.3.1](https://github.com/pycqa/pylint/compare/v3.2.6...v3.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.9) - [github.com/PyCQA/doc8: v1.1.1 → v1.1.2](https://github.com/PyCQA/doc8/compare/v1.1.1...v1.1.2) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/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 <11620178+kjmeagher@users.noreply.github.com> --- .github/workflows/tests.yml | 6 +++--- .pre-commit-config.yaml | 10 +++++----- pyproject.toml | 9 +++------ 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ba9196c..bdb442f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b6674f5..6a6d367 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index fa6d9d4..ad47791 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ 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"] @@ -37,7 +37,6 @@ docs = ["sphinx", "sphinx-rtd-theme", "pandas"] examples = ['matplotlib'] test = [ "h5py", - "tables < 3.8; python_version < '3.9'", "tables", "pandas", "uproot", @@ -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"] @@ -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"] @@ -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]