-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (104 loc) · 2.51 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (104 loc) · 2.51 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["suddenly*", "config*"]
[project]
name = "suddenly"
version = "0.1.0"
description = "Réseau fédéré de fiction partagée"
requires-python = ">=3.11"
dependencies = [
"django>=5.0,<5.1",
"gunicorn>=21.0",
"whitenoise>=6.6",
"psycopg[binary]>=3.1",
"pydantic>=2.5",
"django-allauth>=0.61",
"django-htmx>=1.17",
"djangorestframework>=3.14",
"drf-spectacular>=0.27",
"markdown>=3.5",
"Pygments>=2.17",
"Pillow>=10.2",
"django-storages[s3]>=1.14",
]
[project.optional-dependencies]
federation = [
"celery>=5.3",
"redis>=5.0",
"django-celery-beat>=2.5",
"httpx>=0.27",
"cryptography>=42.0",
"django-ratelimit>=4.1",
"beautifulsoup4>=4.12",
]
docs = [
"mkdocs-material>=9.5",
]
dev = [
"pytest>=8.0",
"pytest-django>=4.7",
"pytest-cov>=4.1",
"pytest-mock>=3.12",
"pytest-playwright>=0.4",
"factory-boy>=3.3",
"ruff>=0.2",
"mypy>=1.8",
"django-stubs>=4.2",
"django-extensions>=3.2",
]
[dependency-groups]
dev = [
"factory-boy>=3.3.3",
"pytest-cov>=7.1.0",
"pytest-mock>=3.15.1",
]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["*/migrations/*"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["mypy_django_plugin.main"]
exclude = ['migrations/']
[[tool.mypy.overrides]]
module = [
"celery.*",
"allauth.*",
"rest_framework.*",
"django_ratelimit.*",
"django_celery_beat.*",
"factory.*",
"bs4.*",
"markdown.*",
]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "config.settings.development"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.development"
python_files = ["tests.py", "test_*.py", "*_tests.py"]
addopts = "-v --tb=short -m 'not e2e and not e2e_federation' --cov=suddenly --cov-fail-under=50 --cov-config=pyproject.toml"
markers = [
"e2e: End-to-end browser tests",
"e2e_federation: Cross-instance federation tests (requires FEDERATION_PEER_URL)",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.coverage.run]
omit = [
"suddenly/wsgi.py",
"suddenly/settings.py",
"suddenly/celery.py",
"suddenly/activitypub/activities.py",
"suddenly/characters/views.py",
"suddenly/games/views.py",
"config/*",
"*/migrations/*",
]