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/.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] 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)] )