This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpyproject.toml
47 lines (44 loc) · 1.61 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
[tool.black]
target-version = ['py311']
include = '\.pyi?$'
exclude = "migrations"
[tool.ruff]
target-version = "py38"
exclude = ["migrations"]
select = ["ALL"]
ignore = [
"A", # Variable/Argument/Class attribute ... is shadowing a python builtin
"ANN101", # Missing type annotation for `self` in method
"C90" , # Method is too complex
"D", # Missing or badly formatted docstrings
"DTZ006", # The use of datetime without `tz` argument is not allowed
"E501", # Line too long (>88)
"EM", # Exception must not use <string format>
"ERA001", # Found commented-out code
"FBT", # Flake Boolean Trap (don't use arg=True in functions)
"N8", # Invalid class/method/function naming
"PLR09", # Too many branches, arguments, statements
"PLR2004", # Magic value used in comparison
"PT009", # Use a regular `assert` instead of unittest-style `assertEqual`
"RUF005", # Consider `(list, *list) instead of concatenation
"S101", # Use of `assert` detected
"S308", # Use of `mark_safe` may expose cross-site scripting vulnerabilities
"SLF001", # Private member accessed"
"TID252", # Relative imports from parent modules are banned (from ..foo import bar)"
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.pytest.ini_options]
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
]
addopts = """
--ds=memcache_status.tests.testapp.settings
--nomigrations
--reuse-db
"""
filterwarnings = ["ignore::RuntimeWarning"]