Skip to content

Commit e6cf4ba

Browse files
alexrudd2jonathanslenders
authored andcommitted
Migrate ruff settings for 0.2.x
1 parent fe38e71 commit e6cf4ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.ruff]
22
target-version = "py37"
3-
select = [
3+
lint.select = [
44
"E", # pycodestyle errors
55
"W", # pycodestyle warnings
66
"F", # pyflakes
@@ -12,7 +12,7 @@ select = [
1212
"RUF100", # unused-noqa
1313
"Q", # quotes
1414
]
15-
ignore = [
15+
lint.ignore = [
1616
"E501", # Line too long, handled by black
1717
"C901", # Too complex
1818
"E731", # Assign lambda.
@@ -21,7 +21,7 @@ ignore = [
2121
]
2222

2323

24-
[tool.ruff.per-file-ignores]
24+
[tool.ruff.lint.per-file-ignores]
2525
"examples/*" = ["T201"] # Print allowed in examples.
2626
"src/prompt_toolkit/application/application.py" = ["T100", "T201", "F821"] # pdb and print allowed.
2727
"src/prompt_toolkit/contrib/telnet/server.py" = ["T201"] # Print allowed.
@@ -33,7 +33,7 @@ ignore = [
3333
"src/prompt_toolkit/shortcuts/progress_bar/formatters.py" = ["UP031"] # %-style formatting.
3434

3535

36-
[tool.ruff.isort]
36+
[tool.ruff.lint.isort]
3737
known-first-party = ["prompt_toolkit"]
3838
known-third-party = ["pygments", "asyncssh"]
3939

0 commit comments

Comments
 (0)