Skip to content

Commit

Permalink
chore(lint): ruff config [pulumi]
Browse files Browse the repository at this point in the history
  • Loading branch information
mergealot committed Oct 20, 2023
1 parent dbed048 commit c51ccc3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# https://docs.astral.sh/ruff/configuration/
exclude = ["manage.py"]
force-exclude = true
line-length = 120
target-version = "py312"

# Full list of available rules can be found on https://docs.astral.sh/ruff/rules/
select = [
"COM", # flake8-commas
"DJ001", # flake8-django: Avoid using null=True on string-based fields such as
"DJ012", # flake8-django: Order of model's inner classes, methods, and fields
"DTZ", # flake8-datetimez
"E", # Error
"F", # Pyflakes
"I", # isort
"PTH", # flake8-use-pathlib
"RSE", # flake8-raise
"Q", # flake8-quotes
"UP009", # pyupgrade: UTF-8 encoding declaration is unnecessary
"W" # Warning
]
ignore = []

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []

0 comments on commit c51ccc3

Please sign in to comment.