mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-10-31 07:57:42 +03:00 
			
		
		
		
	Merge pull request #5020 from cookiecutter/luzfcb-disable-UP038-ruff-rule
Disable UP038 Ruff rule to avoid introducing slower code
This commit is contained in:
		
						commit
						00ecfc5278
					
				|  | @ -150,11 +150,20 @@ select = [ | ||||||
| ignore = [ | ignore = [ | ||||||
|   "S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/ |   "S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/ | ||||||
|   "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` |   "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. | # Allow fix for all enabled rules (when `--fix`) is provided. | ||||||
| fixable = ["ALL"] | fixable = ["ALL"] | ||||||
| unfixable = [] | 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. | # Allow unused variables when underscore-prefixed. | ||||||
| dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user