Skip to content

Commit 7f9edb1

Browse files
committed
fix deprecations
1 parent c0b8d32 commit 7f9edb1

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

install-poetry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import sys
2828

29-
3029
# Eager version check so we fail nicely before possible syntax errors
3130
if sys.version_info < (3, 6): # noqa: UP036
3231
sys.stdout.write("Poetry installer requires Python 3.6 or newer to run!\n")
@@ -51,7 +50,6 @@
5150
from urllib.request import Request
5251
from urllib.request import urlopen
5352

54-
5553
SHELL = os.getenv("SHELL", "")
5654
WINDOWS = sys.platform.startswith("win") or (sys.platform == "cli" and os.name == "nt")
5755
MINGW = sysconfig.get_platform().startswith("mingw")
@@ -536,7 +534,7 @@ def run(self) -> int:
536534
version = self._path
537535
else:
538536
try:
539-
version, current_version = self.get_version()
537+
version, _current_version = self.get_version()
540538
except ValueError:
541539
return 1
542540

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)