File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727import sys
2828
29-
3029# Eager version check so we fail nicely before possible syntax errors
3130if sys .version_info < (3 , 6 ): # noqa: UP036
3231 sys .stdout .write ("Poetry installer requires Python 3.6 or newer to run!\n " )
5150from urllib .request import Request
5251from urllib .request import urlopen
5352
54-
5553SHELL = os .getenv ("SHELL" , "" )
5654WINDOWS = sys .platform .startswith ("win" ) or (sys .platform == "cli" and os .name == "nt" )
5755MINGW = 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
Original file line number Diff line number Diff line change 11[tool .ruff ]
22fix = true
3+ line-length = 88
4+ target-version = " py37"
5+
6+ [tool .ruff .lint ]
37unfixable = [
48 " ERA" , # do not autoremove commented out code
59]
6- target-version = " py37"
7- line-length = 88
810extend-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 ]
2426ban-relative-imports = " all"
2527
26- [tool .ruff .isort ]
28+ [tool .ruff .lint . isort ]
2729force-single-line = true
2830lines-between-types = 1
29- lines-after-imports = 2
You can’t perform that action at this time.
0 commit comments