Skip to content
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
rev: 26.3.1
hooks:
- id: black

Expand All @@ -15,6 +15,6 @@ repos:
- id: check-json

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
rev: v0.15.10
hooks:
- id: ruff
5 changes: 2 additions & 3 deletions install-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

For full documentation, visit https://python-poetry.org/docs/#installation.
"""
import sys

import sys

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


SHELL = os.getenv("SHELL", "")
WINDOWS = sys.platform.startswith("win") or (sys.platform == "cli" and os.name == "nt")
MINGW = sysconfig.get_platform().startswith("mingw")
Expand Down Expand Up @@ -535,7 +534,7 @@ def run(self) -> int:
version = self._path
else:
try:
version, current_version = self.get_version()
version, _current_version = self.get_version()
except ValueError:
return 1

Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[tool.ruff]
fix = true
line-length = 88
target-version = "py37"

[tool.ruff.lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
target-version = "py37"
line-length = 88
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
Expand All @@ -20,10 +22,9 @@ extend-select = [
"UP", # pyupgrade
]

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.isort]
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
Loading