forked from mblayman/homeschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (72 loc) · 1.54 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
[tool.coverage.report]
fail_under = 100
omit = [
"*/migrations/*",
]
show_missing = true
skip_covered = true
[tool.isort]
profile = "black"
src_paths = ["journal"]
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"allauth.account.models",
"allauth.account.signals",
"allauth.socialaccount.models",
"dj_database_url",
"django.*",
"django_extensions.*",
"djstripe.*",
"environ",
"factory",
"hashid_field.*",
"ordered_model.*",
"responses",
"simple_history.*",
"stripe",
"test_plus.test",
"waffle.*",
"weasyprint",
"whitenoise.middleware",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--nomigrations --disable-socket"
DJANGO_SETTINGS_MODULE = "project.testing_settings"
filterwarnings = [
# Enable warnings as errors.
"error",
# djstripe==2.7.3
"ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning",
"ignore:.*pkg_resources.declare_namespace.*:DeprecationWarning",
]
# This warning is coming from dj-stripe 2.5.1 (Example)
# ignore:.*The providing_args argument is deprecated\..*:DeprecationWarning
# ignore:.*The providing_args argument is deprecated\..*:PendingDeprecationWarning
testpaths = [
"homeschool",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
# bandit: Use of `assert` detected
"S101",
]