Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit suggestions (#50)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.9](astral-sh/ruff-pre-commit@v0.5.0...v0.6.9)
- [github.com/tox-dev/pyproject-fmt: 2.1.3 → 2.2.4](tox-dev/pyproject-fmt@2.1.3...2.2.4)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.20.2](abravalheri/validate-pyproject@v0.18...v0.20.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* drop docformatter

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Borda authored Oct 7, 2024
1 parent 8a16828 commit 3298268
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
15 changes: 4 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Expand Down Expand Up @@ -37,13 +37,6 @@ repos:
additional_dependencies: [tomli]
#args: ["--write-changes"] # uncomment if you want to get automatic fixing

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place]

#- repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.991
# hooks:
Expand All @@ -60,7 +53,7 @@ repos:
- mdformat_frontmatter

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.9
hooks:
# try to fix what is possible
- id: ruff
Expand All @@ -71,11 +64,11 @@ repos:
- id: ruff

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.1.3
rev: 2.2.4
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.20.2
hooks:
- id: validate-pyproject
2 changes: 1 addition & 1 deletion tests/collection_deprecate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Copyright (C) 2020-2023 Jiri Borovec <...>."""

from deprecate import deprecated, void
from sklearn.metrics import accuracy_score

from deprecate import deprecated, void
from tests.collection_targets import base_pow_args, base_sum_kwargs

_SHORT_MSG_FUNC = "`%(source_name)s` >> `%(target_name)s` in v%(deprecated_in)s rm v%(remove_in)s."
Expand Down
2 changes: 1 addition & 1 deletion tests/test_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from warnings import warn

import pytest

from deprecate.deprecation import deprecated
from deprecate.utils import no_warning_call

from tests.collection_targets import NewCls

_deprecation_warning = partial(warn, category=DeprecationWarning)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Copyright (C) 2020-2023 Jiri Borovec <...>."""

import pytest
from deprecate.utils import no_warning_call

from deprecate.utils import no_warning_call
from tests.collection_deprecate import (
depr_accuracy_extra,
depr_accuracy_map,
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from warnings import warn

import pytest

from deprecate.utils import no_warning_call


Expand Down

0 comments on commit 3298268

Please sign in to comment.