-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathpyproject.toml
More file actions
182 lines (147 loc) · 4.49 KB
/
Copy pathpyproject.toml
File metadata and controls
182 lines (147 loc) · 4.49 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "django-tenant-users"
description = "A Django app to extend django-tenants to incorporate global multi-tenant users"
version = "2.2.1"
readme = "README.rst"
license = { text = "MIT" }
requires-python = ">=3.9"
authors = [
{ name = "Corvia Technologies, LLC", email = "support@corvia.tech" },
]
keywords = [
"django",
"django-tenant-users",
"multi-tenant",
"saas",
"tenant",
"users",
]
classifiers = [
# Development Status
"Development Status :: 5 - Production/Stable",
# Environment
"Environment :: Web Environment",
# Framework
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
# Audience & License
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
# OS & Language
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
# Topics
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System",
]
dependencies = [
"django>=4.2",
"django-tenants>=3.6,<4.0",
]
[project.urls]
Homepage = "https://github.com/Corvia/django-tenant-users"
Repository = "https://github.com/Corvia/django-tenant-users"
Documentation = "https://django-tenant-users.readthedocs.io/"
Changelog = "https://github.com/Corvia/django-tenant-users/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/Corvia/django-tenant-users/issues"
[tool.poetry]
packages = [
{ include = 'tenant_users' },
]
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.group.test.dependencies]
# Type Checking
django-stubs = { version = "4.2.7", extras = ["compatible-mypy"] }
# Code Quality
nitpick = ">=0.32,<0.37"
safety = ">=2.2,<4.0"
ruff = ">=0.5.0,<0.15.0"
rstfmt = "0.0.14"
# Testing Utilities
pytest = ">=7.2.2,<9.0.0"
pytest-cov = ">=4,<8"
pytest-randomly = ">=3.12,<5.0"
pytest-django = "^4.5.2"
pytest-deadfixtures = "^2.2.1"
pytest-testmon = ">=1.3.3,<3.0.0"
pytest-timeout = "^2.1.0"
hypothesis = { version = "^6.140.3", extras = ["django", "pytest", "pytz"] }
# Documentation and Formatting
doc8 = ">=0.11,<1.2"
# Configuration and Database
tomlkit = ">=0.13.0,<0.14"
python-decouple = "^3.6"
psycopg2-binary = "^2.9.6"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = ">=5.0,<8.0"
sphinx-rtd-theme = ">=1.3,<4.0"
sphinx-autodoc-typehints = ">=1.19.5,<3.0.0"
m2r2 = "^0.3"
psycopg2-binary = "^2.9.6"
tomli = "^2.0.1"
[tool.doc8]
max-line-length = 88
[tool.ruff]
# Ruff config: https://docs.astral.sh/ruff/settings
line-length = 88
target-version = "py39"
preview = false
[tool.ruff.format]
quote-style = "double"
docstring-code-format = true
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [ "ALL" ]
# Project-wide relaxations (formatter & pragmatism)
ignore = [
"ANN", # mypy handles types
"D1", # Docstrings related
"E501", # line length; formatter governs wrapping
"COM812", # trailing comma; formatter decides
"TRY003", # long exception messages; not worth churn
"EM101", "EM102", # exception message style; noise
"PTH", # pathlib nags
]
[tool.ruff.lint.flake8-self]
ignore-names = ["_meta"]
[tool.ruff.lint.isort]
known-first-party = ["tenant_users"]
known-third-party = ["django", "django_tenants"]
[tool.ruff.lint.pep8-naming]
ignore-names = [
"tenant_cached_property",
"UserModel",
"TenantModel",
]
[tool.ruff.lint.per-file-ignores]
# Django scripts / entry points often import inside main()
"manage.py" = ["PLC0415"]
# Generated-ish: keep super lax.
"**/migrations/*" = ["RUF012", "UP", "B", "S", "I", "C90", "PERF"]
# Tests: allow asserts, magic numbers, relaxed docs/types.
"tests/**" = ["S101", "S106", "PLR2004", "D", "PYI", "UP", "N806", "ARG"]
# Re-exports: allow unused imports in package inits.
"**/__init__.py" = ["F401"]
# Sphinx build script sometimes looks “script-y”.
"docs/conf.py" = ["INP001"]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"