Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tobias Raabe <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tobiasraabe authored Jan 6, 2023
1 parent 76a5d35 commit db27318
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ repos:
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
Expand All @@ -56,13 +51,13 @@ repos:
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/myint/docformatter
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.205
rev: v0.0.212
hooks:
- id: ruff
args: [hooks, tests]
Expand Down
12 changes: 6 additions & 6 deletions tests/test_cookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
def test_bake_project(cookies):
major, minor = sys.version_info[:2]
python_version = f"{major}.{minor}"
Expand All @@ -25,7 +25,7 @@ def test_bake_project(cookies):
assert result.project_path.is_dir()


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
def test_remove_readthedocs(cookies):
result = cookies.bake(extra_context={"add_readthedocs": "no"})

Expand All @@ -39,7 +39,7 @@ def test_remove_readthedocs(cookies):
assert "readthedocs" not in readme


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
def test_remove_github_actions(cookies):
result = cookies.bake(extra_context={"add_github_actions": "no"})

Expand All @@ -53,7 +53,7 @@ def test_remove_github_actions(cookies):
assert "github/workflow/status" not in readme


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
def test_remove_tox(cookies):
result = cookies.bake(extra_context={"add_tox": "no"})

Expand All @@ -67,7 +67,7 @@ def test_remove_tox(cookies):
assert not tox.exists()


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
def test_remove_license(cookies):
result = cookies.bake(extra_context={"open_source_license": "Not open source"})

Expand All @@ -79,7 +79,7 @@ def test_remove_license(cookies):
assert not license_.exists()


@pytest.mark.end_to_end
@pytest.mark.end_to_end()
@pytest.mark.skipif(os.environ.get("CI") is None, reason="Run only in CI.")
def test_check_conda_environment_creation_and_run_all_checks(cookies):
"""Test that the conda environment is created and pre-commit passes."""
Expand Down
9 changes: 5 additions & 4 deletions {{cookiecutter.package_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ repos:
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/asottile/pyupgrade
{% if cookiecutter.python_version not in ["3.10", "3.11", "3.12"] %}- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py{{ cookiecutter.python_version | replace('.', '') }}-plus]
{% endif %}
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
Expand All @@ -42,13 +43,13 @@ repos:
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/myint/docformatter
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
{% if cookiecutter.python_version in ["3.10", "3.11", "3.12"] %}- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.205
rev: v0.0.212
hooks:
- id: ruff
- repo: https://github.com/dosisod/refurb
Expand Down

0 comments on commit db27318

Please sign in to comment.