-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (78 loc) · 2.27 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (78 loc) · 2.27 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
[project]
name = "githubcontrib"
version = "0.1.0"
description = "GitHubContrib is a Django application for showcasing GitHub contributions."
authors = [{ name = "Anton Samarchyan", email = "desecho@gmail.com" }]
license = { text = "MIT" }
readme = "README.rst"
requires-python = ">=3.12"
dependencies = [
"Django>=5.2.4,<6",
"social-auth-app-django>=5.4.1,<6.0.0",
"social-auth-core>=4.5.4,<5.0.0",
"django-tqdm>=1.3.1,<2.0.0",
"django-modeladmin-reorder>=0.3.1,<1.0.0",
"django-stubs-ext>=0.5.0,<1.0.0",
"django-debug-toolbar",
"djangorestframework>=3.13.1,<4.0.0",
"djangorestframework-simplejwt>=5.2.0,<6.0.0",
"django-cors-headers>=4.4.0,<5.0.0",
"mysqlclient>=2.2.4,<3.0.0",
"sentry-sdk>=2.57.0,<3.0.0",
"PyGithub>=1.55,<2.0.0",
"gunicorn>=25.3.0,<26.0.0",
"typing-extensions>=4.3.0,<5.0.0",
]
[dependency-groups]
dev = [
"python-dateutil",
"pytest",
"pytest-cov",
"pytest-sugar",
"pytest-mock",
"pytest-django",
"django-test-without-migrations",
"ruff",
"safety",
"restructuredtext_lint",
"mypy",
"django-stubs",
"djangorestframework-stubs",
"types-python-dateutil",
]
[tool.uv]
package = false
[tool.ruff]
line-length = 119
target-version = "py312"
extend-exclude = ["src/githubcontrib/migrations"]
[tool.pytest.ini_options]
python_files = ["test_*"]
DJANGO_SETTINGS_MODULE = "githubcontrib_project.settings_test"
addopts = "--cov-report xml --cov-report term-missing --cov src --nomigrations -vv"
[tool.mypy]
mypy_path = "src"
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
namespace_packages = true
disallow_subclassing_any = false
warn_no_return = true
warn_unreachable = true
local_partial_types = true
pretty = true
strict = true
exclude = ["^src/githubcontrib/tests", "^src/githubcontrib/migrations"]
[tool.django-stubs]
django_settings_module = "githubcontrib_project.settings"
[[tool.mypy.overrides]]
module = ["debug_toolbar.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["social_core.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["social_django.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["rest_framework_simplejwt", "rest_framework_simplejwt.*"]
ignore_missing_imports = true
follow_imports = "skip"