pyproject.toml (29 lines of code) (raw):

[tool.mypy] ignore_missing_imports = true no_implicit_optional = true scripts_are_modules = true [tool.ruff] # Same as Black. line-length = 119 # Assume Python 3.11 target-version = "py311" [tool.ruff.lint] select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes "I", # isort "C", # flake8-comprehensions "B", # flake8-bugbear ] ignore = [ "E501", # Line length (handled by ruff-format) "B008", # do not perform function calls in argument defaults "C901", # too complex ] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" per-file-ignores = { "__init__.py" = ["F401"] } [tool.isort] profile = "black" known_third_party = ["transformers", "starlette", "huggingface_hub"]