diff --git a/pyproject.toml b/pyproject.toml index 36d5119..9aec757 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,9 +64,70 @@ readme = { file = ["README.md"], content-type = "text/markdown" } [tool.ruff] line-length = 120 +ignore = [ + "D401", + "D205", + "D212", + "D200", + "D204", + "D203", + "ANN002", + "ANN003", + "ANN101", + "ANN204", + "COM812", + "PLR2004" +] +select = [ + "F", # pyflakes + "E", # pycodestyle errors + "W", # pycodestyle warnings + "C", # mccabe complexity + "I", # isort + "N", # naming + "D", # pydocstyle + "ANN", # annotations + "ASYNC", # async + "S", # bandit + "BLE", # blind except + "B", # bugbear + "A", # builtins + "COM", # commas + "C4", # comprehensions + "DTZ", # datetimez + "T10", # debugger + "G", # logging format + "INP", # no pep420 + "PIE", # pie? misc checks + "T20", # print + "Q", # quotes + "RSE", # raise's + "RET", # return values + "SLF", # private members + "SIM", # simplify calls + "TID", # tidy imports + "TCH", # type checking + "INT", # get text + "ARG", # unused arguments + "PTH", # use pathlib instead + "TD", # to do's + "FIX", # fix me style messages + "ERA", # eradicate commented code + "PGH", # pygrep hooks + "PLC", # pylint: convention + "PLE", # pylint: errors + "PLR", # pylint: refactor + "PLW", # pylint: warnings + "TRY", # tryceratops, aka exceptions + "RUF", # ruff specific +] [tool.ruff.per-file-ignores] "__init__.py" = [ "F401", - "F403" + "F403", + "D104" +] +"setup.py" = [ + "D100" ]