Added Wagtail's `ruff.toml`

Ignore F405 in settings
pull/449/head
John-Scott Atlakson 2023-11-09 20:20:51 -08:00 zatwierdzone przez Thibaud Colas
rodzic 00a56197db
commit 3fbd1980a9
2 zmienionych plików z 21 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,4 @@
# ruff: noqa: F405
import os
import random
import string

20
ruff.toml 100644
Wyświetl plik

@ -0,0 +1,20 @@
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D105: Missing docstring in magic method
# N806: Variable in function should be lowercase
# E501: Line too long
ignore = ["D100","D101","D102","D103","D105","N806","E501"]
exclude = ["wagtail/project_template/*","node_modules","venv",".venv","migrations"]
line-length = 88
target-version = "py38" # minimum target version
# E: pycodestyle errors
# F: Pyflakes
# I: isort
# T20: flake8-print
# BLE: flake8-blind-except
# C4: flake8-comprehensions
select = ["E", "F", "I", "T20", "BLE", "C4"]