-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (82 loc) · 1.95 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tool.black]
target-version = ["py311"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
omit = [
"*/asgi.py",
"*/manage.py",
"*/migrations/*",
"*/wsgi.py",
]
[tool.django-stubs]
django_settings_module = "fakester.settings"
[tool.interrogate]
ignore-init-module = true
ignore-nested-classes = true
fail-under = 95
exclude = [
"*/asgi.py",
"*/manage.py",
"*/migrations/*",
"*/wsgi.py",
]
[tool.isort]
profile = "black"
src_paths = ["src"]
known_django = "django"
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
[tool.mypy]
python_version = "3.11"
mypy_path = "src"
plugins = ["mypy_django_plugin.main"]
exclude = ["migrations"]
[[tool.mypy.overrides]]
module = [
"crispy_forms.*",
"decouple",
"django_ratelimit.decorators",
"ipware",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --import-mode=importlib --verbose"
testpaths = "tests"
pythonpath = "src"
DJANGO_SETTINGS_MODULE = "fakester.settings"
[tool.ruff]
target-version = "py311"
extend-exclude = ["migrations"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"E", # flake8
"F", # flake8
"N", # pep8-naming
"PT", # flake8-pytest-style
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"TRY", # tryceratops
"UP", # pyupgrade
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"D104", # Missing docstring in public package
"D106", # Missing docstring in public nested class
"S101", # Use of `assert` detected
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true