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 Feb 9, 2024
1 parent 47ded00 commit 43d61f8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 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 = [
"C4", # flake8-comprehensions
"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 = []

# Ignore line-too-long error in our generated codes
[per-file-ignores]
"**/api/schema/*" = ["E501"]

0 comments on commit 43d61f8

Please sign in to comment.