diff options
-rw-r--r-- | pydis_core/utils/paste_service.py | 2 | ||||
-rw-r--r-- | pyproject.toml | 4 |
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 |