From 8071d451973c5e354cad12ec15c3220a3f587023 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:50:25 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports - [github.com/asottile/reorder-python-imports: v3.9.0 → v3.15.0](https://github.com/asottile/reorder-python-imports/compare/v3.9.0...v3.15.0) - [github.com/psf/black: 23.1.0 → 25.1.0](https://github.com/psf/black/compare/23.1.0...25.1.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.244 → v0.12.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.244...v0.12.3) - [github.com/dosisod/refurb: v1.12.0 → v2.1.0](https://github.com/dosisod/refurb/compare/v1.12.0...v2.1.0) - [github.com/asottile/setup-cfg-fmt: v2.2.0 → v2.8.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.2.0...v2.8.0) - [github.com/econchick/interrogate: 1.5.0 → 1.7.0](https://github.com/econchick/interrogate/compare/1.5.0...1.7.0) - [github.com/executablebooks/mdformat: 0.7.16 → 0.7.22](https://github.com/executablebooks/mdformat/compare/0.7.16...0.7.22) - [github.com/codespell-project/codespell: v2.2.2 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.2.2...v2.4.1) - [github.com/pre-commit/mirrors-mypy: v1.0.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.0...v1.16.1) - [github.com/mgedmin/check-manifest: 0.49 → 0.50](https://github.com/mgedmin/check-manifest/compare/0.49...0.50) --- .pre-commit-config.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ffa2f3..f12efe0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files args: ['--maxkb=100'] @@ -25,35 +25,35 @@ repos: - id: python-no-log-warn - id: python-use-type-annotations - id: text-unicode-replacement-char -- repo: https://github.com/asottile/reorder_python_imports - rev: v3.9.0 +- repo: https://github.com/asottile/reorder-python-imports + rev: v3.15.0 hooks: - id: reorder-python-imports args: [--py37-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 25.1.0 hooks: - id: black -- repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.244 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.12.3 hooks: - id: ruff - repo: https://github.com/dosisod/refurb - rev: v1.12.0 + rev: v2.1.0 hooks: - id: refurb args: [--ignore, FURB126] - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/econchick/interrogate - rev: 1.5.0 + rev: 1.7.0 hooks: - id: interrogate args: [-v, --fail-under=40, src, tests] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: [ @@ -62,13 +62,13 @@ repos: ] args: [--wrap, "88"] - repo: https://github.com/codespell-project/codespell - rev: v2.2.2 + rev: v2.4.1 hooks: - id: codespell args: [-L als, -L unparseable] additional_dependencies: ["tomli"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.0.0' + rev: 'v1.16.1' hooks: - id: mypy args: [ @@ -82,7 +82,7 @@ repos: ] pass_filenames: false - repo: https://github.com/mgedmin/check-manifest - rev: "0.49" + rev: "0.50" hooks: - id: check-manifest args: [--no-build-isolation] From 79019097e67e94c3f11c36b2a96b565ad0757b17 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 17:52:24 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/ISSUE_TEMPLATE/enhancement.md | 2 +- setup.cfg | 5 ++--- src/pytask_environment/config.py | 1 + src/pytask_environment/database.py | 1 + src/pytask_environment/logging.py | 1 + src/pytask_environment/plugin.py | 1 + tests/conftest.py | 2 +- tests/test_logging.py | 8 ++++---- 8 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/enhancement.md b/.github/ISSUE_TEMPLATE/enhancement.md index 252db46..c3fc128 100644 --- a/.github/ISSUE_TEMPLATE/enhancement.md +++ b/.github/ISSUE_TEMPLATE/enhancement.md @@ -8,7 +8,7 @@ ______________________________________________________________________ #### Is your feature request related to a problem? Provide a description of what the problem is, e.g. "I wish I could use -pytask-environment to do \[...\]". +pytask-environment to do [...]". #### Describe the solution you'd like diff --git a/setup.cfg b/setup.cfg index 6a940a7..73e9c12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,11 +7,10 @@ url = https://github.com/pytask-dev/pytask-environment author = Tobias Raabe author_email = raabe@posteo.de license = MIT -license_file = LICENSE +license_files = LICENSE platforms = any classifiers = Development Status :: 4 - Beta - License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only @@ -27,7 +26,7 @@ install_requires = click pony pytask>=0.2 -python_requires = >=3.7 +python_requires = >=3.9 include_package_data = True package_dir = =src zip_safe = False diff --git a/src/pytask_environment/config.py b/src/pytask_environment/config.py index 31b90bc..211e159 100644 --- a/src/pytask_environment/config.py +++ b/src/pytask_environment/config.py @@ -1,4 +1,5 @@ """This module contains everything related to the configuration.""" + from __future__ import annotations from typing import Any diff --git a/src/pytask_environment/database.py b/src/pytask_environment/database.py index 2328aa6..812b4c4 100644 --- a/src/pytask_environment/database.py +++ b/src/pytask_environment/database.py @@ -1,4 +1,5 @@ """This module contains everything related to the database.""" + from __future__ import annotations from pony import orm diff --git a/src/pytask_environment/logging.py b/src/pytask_environment/logging.py index 0736440..5d77804 100644 --- a/src/pytask_environment/logging.py +++ b/src/pytask_environment/logging.py @@ -1,4 +1,5 @@ """This module contains everything related to logging.""" + from __future__ import annotations import sys diff --git a/src/pytask_environment/plugin.py b/src/pytask_environment/plugin.py index c357299..e7bd722 100644 --- a/src/pytask_environment/plugin.py +++ b/src/pytask_environment/plugin.py @@ -1,4 +1,5 @@ """Entry-point for the plugin.""" + from __future__ import annotations from pluggy import PluginManager diff --git a/tests/conftest.py b/tests/conftest.py index 541f8d3..9ad3468 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,6 +4,6 @@ from click.testing import CliRunner -@pytest.fixture() +@pytest.fixture def runner(): return CliRunner() diff --git a/tests/test_logging.py b/tests/test_logging.py index 6453b17..542d803 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -16,7 +16,7 @@ from _pytask.database_utils import db -@pytest.mark.end_to_end() +@pytest.mark.end_to_end def test_existence_of_python_executable_in_db(tmp_path, runner): """Test that the Python executable is stored in the database.""" task_path = tmp_path.joinpath("task_dummy.py") @@ -38,7 +38,7 @@ def test_existence_of_python_executable_in_db(tmp_path, runner): orm.delete(e for e in entity) -@pytest.mark.end_to_end() +@pytest.mark.end_to_end def test_flow_when_python_version_has_changed(monkeypatch, tmp_path, runner): """Test the whole use-case. @@ -96,7 +96,7 @@ def test_flow_when_python_version_has_changed(monkeypatch, tmp_path, runner): orm.delete(e for e in entity) -@pytest.mark.end_to_end() +@pytest.mark.end_to_end @pytest.mark.parametrize( ("check_python_version", "expected"), [("true", 1), ("false", 0)] ) @@ -131,7 +131,7 @@ def test_python_version_changed( orm.delete(e for e in entity) -@pytest.mark.end_to_end() +@pytest.mark.end_to_end @pytest.mark.parametrize( ("check_python_version", "expected"), [("true", 1), ("false", 0)] )