summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-10-21 21:41:38 +0100
committerGravatar Chris Lovering <[email protected]>2023-10-26 14:10:03 +0100
commit1c1951f2ff65b91bbf96e7d0f37159c0c4937b5c (patch)
treea3fc14eb8ff1df11574cb088ad220d6831083929
parentBump deps to latest (diff)
Update ruff config to enable unsafe and preview rules
-rw-r--r--pydis_core/utils/paste_service.py2
-rw-r--r--pyproject.toml4
2 files changed, 4 insertions, 2 deletions
diff --git a/pydis_core/utils/paste_service.py b/pydis_core/utils/paste_service.py
index f3d1aed8..67f6a731 100644
--- a/pydis_core/utils/paste_service.py
+++ b/pydis_core/utils/paste_service.py
@@ -13,7 +13,7 @@ MAX_PASTE_SIZE = 512 * 1024 # 512kB
"""The maximum allows size of a paste, in bytes."""
# A dict where the keys are paste services and the keys are the lists of lexers that paste service supports.
-_lexers_supported_by_pastebin: dict[str,list[str]] = {}
+_lexers_supported_by_pastebin: dict[str, list[str]] = {}
class PasteResponse(BaseModel):
diff --git a/pyproject.toml b/pyproject.toml
index 5290646c..e430de23 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -79,6 +79,7 @@ source = ["tests"]
[tool.ruff]
target-version = "py310"
extend-exclude = [".cache"]
+select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
ignore = [
"ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401",
"B904",
@@ -92,7 +93,8 @@ ignore = [
"SIM102", "SIM108",
]
line-length = 120
-select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
+unsafe-fixes = true
+preview = true
[tool.ruff.isort]
order-by-type = false