1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/HXSecurity-DongTai

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
pyproject.toml 1.7 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
st1020 Отправлено 28.08.2023 06:06 40efec3
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
[tool.django-stubs]
django_settings_module = "dongtai_conf.settings"
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.ruff]
line-length = 120
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"T20", # flake8-print
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"FLY", # flynt
"PERF", # Perflint
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long, handled by black
"SIM112", # Use capitalized environment variable
"PGH003", # Use specific rule codes when ignoring type issues
"PLR091", # Too many ...
"PLR2004", # Magic value used in comparison
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar
"TRY003", # Avoid specifying long messages outside the exception class
"TRY301", # Abstract raise to an inner function
"PERF203", # try-except within a loop incurs performance overhead
]
# target version is python 3.9 because Cython not support some python 3.10 feature
target-version = "py39"
[tool.ruff.per-file-ignores]
"test/*.py" = ["T201"]
"**/tests.py" = ["T201"]
"deploy/*.py" = ["T201"]
"dongtai_conf/*.py" = ["T201"]

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/HXSecurity-DongTai.git
git@api.gitlife.ru:oschina-mirror/HXSecurity-DongTai.git
oschina-mirror
HXSecurity-DongTai
HXSecurity-DongTai
develop