diff --git a/pyproject.toml b/pyproject.toml --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ classifiers = [ 'Operating System :: OS Independent', 'Topic :: Software Development :: Version Control', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ] [project.entry-points."paste.app_factory"] @@ -65,7 +65,15 @@ dependencies = {file = ["requirements.tx optional-dependencies.tests = {file = ["requirements_test.txt"]} [tool.ruff] -lint.select = [ +# Line length max same as Black. +line-length = 120 + +# Assume Python 3.11 +target-version = "py311" + + +[tool.ruff.lint] +select = [ # Pyflakes "F", # Pycodestyle @@ -74,17 +82,15 @@ lint.select = [ # isort "I001" ] -lint.ignore = [ + +ignore = [ "E501", # line too long, handled by black ] -# Same as Black. -line-length = 120 [tool.ruff.lint.isort] known-first-party = ["rhodecode"] [tool.ruff.format] - # Like Black, use double quotes for strings. quote-style = "double"