File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11repos :
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
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
Original file line number Diff line number Diff line change 2323
2424For 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
3030if sys .version_info < (3 , 6 ): # noqa: UP036
5050from urllib .request import Request
5151from urllib .request import urlopen
5252
53-
5453SHELL = os .getenv ("SHELL" , "" )
5554WINDOWS = sys .platform .startswith ("win" ) or (sys .platform == "cli" and os .name == "nt" )
5655MINGW = 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
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