Skip to content

[pre-commit.ci] pre-commit autoupdate #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
26 changes: 13 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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']
Expand All @@ -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.4
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: [
Expand All @@ -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.17.0'
hooks:
- id: mypy
args: [
Expand All @@ -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]
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ url = https://github.com/pytask-dev/pytask-environment
author = Tobias Raabe
author_email = [email protected]
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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/pytask_environment/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains everything related to the configuration."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions src/pytask_environment/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains everything related to the database."""

from __future__ import annotations

from pony import orm
Expand Down
1 change: 1 addition & 0 deletions src/pytask_environment/logging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains everything related to logging."""

from __future__ import annotations

import sys
Expand Down
1 change: 1 addition & 0 deletions src/pytask_environment/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Entry-point for the plugin."""

from __future__ import annotations

from pluggy import PluginManager
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
from click.testing import CliRunner


@pytest.fixture()
@pytest.fixture
def runner():
return CliRunner()
8 changes: 4 additions & 4 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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.

Expand Down Expand Up @@ -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)]
)
Expand Down Expand Up @@ -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)]
)
Expand Down
Loading