diff --git a/pyproject.toml b/pyproject.toml index 059cf6c..af22c59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,51 +57,27 @@ reportPrivateImportUsage = false target-version = "py311" [tool.ruff.lint] -select = [ - "A", # flake8-builtins - "ANN", # flake8-annotations - "ARG", # flake8-unused-arguments - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "C90", # mccabe - "D", # pydocstyle - "DTZ", # flake8-datetimez - "E", # pycodestyle - "ERA", # eradicate - "F", # pyflakes - "FBT", # flake8-boolean-trap - "I", # isort - "INP", # flake8-no-pep420 - "ISC", # flake8-implicit-str-concat - "N", # pep8-naming - "PGH", # pygrep-hooks - "PIE", # flake8-pie - "PLC", # pylint convention - "PLE", # pylint error - "PLR", # pylint refactor - "PLW", # pylint warning - "PT", # flake8-pytest-style - "PTH", # flake8-use-pathlib - "Q", # flake8-quotes - "RET", # flake8-return - "RSE", # flake8-raise - "RUF", # ruff - "SIM", # flake8-simplify - "SLF", # flake8-self - "T20", # flake8-print - "TCH", # flake8-type-checking - "TID", # flake8-tidy-imports - "TRY", # tryceratops - "UP", # pyupgrade - "W", # pycodestyle -] +select = ["ALL"] ignore = [ "ANN101", # missing-type-self "ANN102", # missing-type-cls "ANN401", # any-type "D", # pydocstyle - "ISC001", # single-line-implicit-string-concatenation + "EM101", # raw-string-in-exception # TODO + "EM102", # f-string-in-exception # TODO + "FIX001", # line-contains-fixme + "FIX002", # line-contains-todo + "G004", # logging-f-string + "S101", # assert # TODO + "TD002", # missing-todo-author + "TD003", # missing-todo-link + "TD004", # missing-todo-colon # TODO + "TD005", # missing-todo-description # TODO "TRY003", # raise-vanilla-args + # + # These rules interfere with `ruff format` + "COM812", # missing-trailing-comma + "ISC001", # single-line-implicit-string-concatenation ] [tool.ruff.lint.per-file-ignores] @@ -116,6 +92,7 @@ ignore = [ "PLR0913", # too-many-arguments "PLR2004", # magic-value-comparison "PT027", # pytest-unittest-raises-assertion + "S101", # assert "SLF001", # private-member-access "TRY002", # raise-vanilla-class ]