-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (130 loc) · 3.99 KB
/
pyproject.toml
File metadata and controls
149 lines (130 loc) · 3.99 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[project]
name = "flagsmith-common"
version = "3.3.0"
description = "Flagsmith's common library"
requires-python = ">=3.11,<4.0"
dependencies = []
optional-dependencies = { test-tools = [
"pyfakefs (>=5,<6)",
"pytest-django (>=4,<5)",
], common-core = [
"django (>4,<6)",
"django-health-check",
"djangorestframework-recursive",
"djangorestframework",
"drf-spectacular (>=0.28.0,<1)",
"drf-writable-nested",
"environs (<15)",
"gunicorn (>=19.1)",
"prometheus-client (>=0.0.16)",
"psycopg2-binary (>=2.9,<3)",
"requests",
"simplejson (>=3,<4)",
], task-processor = [
"backoff (>=2.2.1,<3.0.0)",
"django (>4,<6)",
"django-health-check",
"prometheus-client (>=0.0.16)",
], flagsmith-schemas = [
"simplejson",
"typing_extensions",
"flagsmith-flag-engine>6",
] }
authors = [
{ name = "Matthew Elwell" },
{ name = "Gagan Trivedi" },
{ name = "Kim Gustyr" },
{ name = "Zach Aysan" },
{ name = "Francesco Lo Franco" },
{ name = "Rodrigo López Dato" },
{ name = "Evandro Myller" },
{ name = "Wadii Zaim" },
]
maintainers = [{ name = "Flagsmith Team", email = "support@flagsmith.com" }]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
readme = "README.md"
classifiers = [
"Framework :: Django",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
]
[project.urls]
Changelog = "https://github.com/flagsmith/flagsmith-common/blob/main/CHANGELOG.md"
Download = "https://github.com/flagsmith/flagsmith-common/releases"
Homepage = "https://flagsmith.com"
Issues = "https://github.com/flagsmith/flagsmith-common/issues"
Repository = "https://github.com/flagsmith/flagsmith-common"
[project.scripts]
flagsmith = "common.core.main:main"
[project.entry-points.pytest11]
flagsmith-test-tools = "common.test_tools.plugin"
[dependency-groups]
dev = [
"dj-database-url (>=2.3.0, <3.0.0)",
"django-stubs (>=5.1.3, <6.0.0)",
"djangorestframework-stubs (>=3.15.3, <4.0.0)",
"mypy (>=1.15.0, <2.0.0)",
"pre-commit",
"pydantic>=2.12.5",
"pyfakefs (>=5.7.4, <6.0.0)",
"pytest (>=8.3.4, <9.0.0)",
"pytest-asyncio (>=0.25.3, <1.0.0)",
"pytest-cov (>=6.0.0, <7.0.0)",
"pytest-django (>=4.10.0, <5.0.0)",
"pytest-freezegun (>=0.4.2, <1.0.0)",
"pytest-httpserver (>=1.1.3, <2.0.0)",
"pytest-mock (>=3.14.0, <4.0.0)",
"setuptools (>=78.1.1, <79.0.0)",
"types-python-dateutil (>=2.9.0.20250516, <3.0.0)",
"types-simplejson (>=3.20.0.20250326, <4.0.0)",
]
[build-system]
requires = ["uv_build>=0.10.8,<0.11.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = ["common", "task_processor", "flagsmith_schemas"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'@(abc\\.)?abstractmethod',
]
[tool.pytest.ini_options]
addopts = ['--ds=settings.dev', '-vvvv', '-p', 'no:warnings']
console_output_style = 'count'
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
extend-exclude = ["migrations"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
docstring-code-format = true
# Set the line length limit used when formatting code snippets in
# docstrings.
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
# Establish parity with flake8 + isort
select = ["C901", "E4", "E7", "E9", "F", "I", "W"]
ignore = []
fixable = ["ALL"]
unfixable = []
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
strict = true
[tool.django-stubs]
django_settings_module = "settings.dev"
[tool.drf-stubs]
enabled = true