Skip to content

Commit 1c1951f

Browse files
committed
Update ruff config to enable unsafe and preview rules
1 parent 8cde6d8 commit 1c1951f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pydis_core/utils/paste_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""The maximum allows size of a paste, in bytes."""
1414

1515
# A dict where the keys are paste services and the keys are the lists of lexers that paste service supports.
16-
_lexers_supported_by_pastebin: dict[str,list[str]] = {}
16+
_lexers_supported_by_pastebin: dict[str, list[str]] = {}
1717

1818

1919
class PasteResponse(BaseModel):

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ source = ["tests"]
7979
[tool.ruff]
8080
target-version = "py310"
8181
extend-exclude = [".cache"]
82+
select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
8283
ignore = [
8384
"ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
8485
"B904",
@@ -92,7 +93,8 @@ ignore = [
9293
"SIM102", "SIM108",
9394
]
9495
line-length = 120
95-
select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
96+
unsafe-fixes = true
97+
preview = true
9698

9799
[tool.ruff.isort]
98100
order-by-type = false

0 commit comments

Comments
 (0)