Skip to content

Commit

Permalink
Merge pull request cookiecutter#5020 from cookiecutter/luzfcb-disable…
Browse files Browse the repository at this point in the history
…-UP038-ruff-rule

Disable UP038 Ruff rule to avoid introducing slower code
  • Loading branch information
foarsitter authored Apr 24, 2024
2 parents 3f5f90e + ae52c62 commit 00ecfc5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,20 @@ select = [
ignore = [
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"SIM102" # sometimes it's better to nest
"SIM102", # sometimes it's better to nest
"UP038" # Checks for uses of isinstance/issubclass that take a tuple
# of types for comparison.
# Deactivated because it can make the code slow:
# https://github.com/astral-sh/ruff/issues/7871
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# The fixes in extend-unsafe-fixes will require
# provide the `--unsafe-fixes` flag when fixing.
extend-unsafe-fixes = [
"UP038"
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

Expand Down

0 comments on commit 00ecfc5

Please sign in to comment.