Skip to content

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

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

Merged
merged 3 commits into from
Jan 6, 2023
Merged
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
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