diff --git a/pyproject.toml b/pyproject.toml index e10672d..afe8d85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ exclude = ["docs/", "tests/"] # Configure ruff to be *heavily* opinionated. We want to enforce a consistent style across all code. # Enable checks for pydocstyle (`D`), pycodestyle (`E`, `W`), Pyflakes (`F`), McCabe Complexity (C90) # isort (`I`), pep8 naming (`N`), flake8 (`A`, `ANN`, `B`, `C4`, `EM`, `FBT`, `ICN`, `INT`, `ISC`, `PT`, -# `PTH`, `RET`, `SIM`, `TCH`, and `TID`), perflint (`PERF`), numpy rules (`NPY`), pandas +# `PTH`, `RET`, `SIM`, `TC`, and `TID`), perflint (`PERF`), numpy rules (`NPY`), pandas # rules (`PD`), pylint (`PL`), ruff rules (`RUF`). select = [ "D", @@ -83,7 +83,7 @@ select = [ "PTH", "RET", "SIM", - "TCH", + "TC", "TID", "PERF", "NPY", @@ -100,9 +100,9 @@ select = [ # is unenforceable in such a data-heavy library. # - PLR0914: same as above. # - PLR0917: same as above. -# - TCH001: the `TYPE_CHECKING` blocks either don't work or i'm too stupid to get them to work. -# - TCH002: same as above. -# - TCH003: same as above. +# - TC001: the `TYPE_CHECKING` blocks either don't work or i'm too stupid to get them to work. +# - TC002: same as above. +# - TC003: same as above. # - ISC001: Personally, i really like this rule but apparently it can cause issues with the ruff formatter. ignore = [ "PD002", @@ -111,9 +111,9 @@ ignore = [ "PLR0913", # "PLR0914", # "PLR0917", - "TCH001", - "TCH002", - "TCH003", + "TC001", + "TC002", + "TC003", "ISC001", ] # Allow autofix for all enabled rules (when `--fix`) is provided. @@ -157,7 +157,7 @@ fixable = [ "RUF", "SIM", "SLF", - "TCH", + "TC", "TID", "TRY", "UP",