Skip to content

Commit de1ef28

Browse files
[pre-commit.ci] pre-commit autoupdate (#163)
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
1 parent 8c75c08 commit de1ef28

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black-pre-commit-mirror
3-
rev: 25.1.0
3+
rev: 26.3.1
44
hooks:
55
- id: black
66

@@ -15,6 +15,6 @@ repos:
1515
- id: check-json
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.12.12
18+
rev: v0.15.10
1919
hooks:
2020
- id: ruff

install-poetry.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
2424
For full documentation, visit https://python-poetry.org/docs/#installation.
2525
"""
26-
import sys
2726

27+
import sys
2828

2929
# Eager version check so we fail nicely before possible syntax errors
3030
if sys.version_info < (3, 6): # noqa: UP036
@@ -50,7 +50,6 @@
5050
from urllib.request import Request
5151
from urllib.request import urlopen
5252

53-
5453
SHELL = os.getenv("SHELL", "")
5554
WINDOWS = sys.platform.startswith("win") or (sys.platform == "cli" and os.name == "nt")
5655
MINGW = sysconfig.get_platform().startswith("mingw")
@@ -535,7 +534,7 @@ def run(self) -> int:
535534
version = self._path
536535
else:
537536
try:
538-
version, current_version = self.get_version()
537+
version, _current_version = self.get_version()
539538
except ValueError:
540539
return 1
541540

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tool.ruff]
22
fix = true
3+
line-length = 88
4+
target-version = "py37"
5+
6+
[tool.ruff.lint]
37
unfixable = [
48
"ERA", # do not autoremove commented out code
59
]
6-
target-version = "py37"
7-
line-length = 88
810
extend-select = [
911
"B", # flake8-bugbear
1012
"C4", # flake8-comprehensions
@@ -20,10 +22,9 @@ extend-select = [
2022
"UP", # pyupgrade
2123
]
2224

23-
[tool.ruff.flake8-tidy-imports]
25+
[tool.ruff.lint.flake8-tidy-imports]
2426
ban-relative-imports = "all"
2527

26-
[tool.ruff.isort]
28+
[tool.ruff.lint.isort]
2729
force-single-line = true
2830
lines-between-types = 1
29-
lines-after-imports = 2

0 commit comments

Comments
 (0)