diff --git a/pyproject.toml b/pyproject.toml index 6800e70a..c91aa920 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,18 +1,18 @@ [tool.ruff] # https://beta.ruff.rs/docs/configuration/ +line-length = 120 select = [ - "Q000" -# "E", # pycodestyle errors -# "W", # pycodestyle warnings -# "F", # pyflakes -# "I", # isort -# "C", # flake8-comprehensions -# "B", # flake8-bugbear -# "Q", # flake8-quotes -# "PLE", # pylint error -# "PLR", # pylint refactor -# "PLW", # pylint warning -# "UP", # pyupgrade + "E", # pycodestyle errors + "W", # pycodestyle warnings + "F", # pyflakes + "I", # isort + "C", # flake8-comprehensions + "B", # flake8-bugbear + "Q", # flake8-quotes + "PLE", # pylint error + "PLR", # pylint refactor + "PLW", # pylint warning + "UP", # pyupgrade ] extend-exclude = [ @@ -22,10 +22,9 @@ extend-exclude = [ "**migrations/**", ] -#ignore = [ -# "B006", # Do not use mutable data structures for argument defaults -# "PLR0913", # Too many arguments to function call, -#] +ignore = [ + "I001", # Import block is un-sorted or un-formatted (would be nice not to do this) +] [tool.ruff.per-file-ignores] "__init__.py" = [ @@ -34,6 +33,9 @@ extend-exclude = [ [tool.ruff.isort] combine-as-imports = true +known-first-party = [ + "explorer", +] [tool.ruff.pyupgrade] # Preserve types, even if a file imports `from __future__ import annotations`.