-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
171 lines (147 loc) · 3.98 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
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
[tool.poetry]
name = "django-generic-api-permissions"
version = "0.4.7"
description="Generic API permissions and visibilities for Django"
authors = ["Adfinis <[email protected]>"]
readme = "README.md"
repository = "https://github.com/adfinis/django-generic-api-permissions"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Environment :: Web Environment",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
include = ["CHANGELOG.md"]
exclude = [
"tests",
]
packages = [
{ include = "generic_permissions" }
]
[tool.poetry.dependencies]
python = ">=3.8.1"
django = ">=3.2"
djangorestframework = "^3.14"
[tool.poetry.dev-dependencies]
black = "^24.4.2"
ruff = "^0.8.1"
[tool.poetry.group.djangorestframework-jsonapi]
optional = true
[tool.poetry.group.djangorestframework-jsonapi.dependencies]
djangorestframework-jsonapi= ">=6.1,<8.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
pytest-django = "^4.8.0"
pytest-randomly = "^3.15.0"
pdbpp = "^0.10.3"
ipdb = "^0.13.13"
[tool.ruff.lint]
select = ["E", "W", "F", "B", "I", "C4", "C90"]
ignore = [
# whitespace before ':'
"E203",
# too many leading ### in a block comment
"E266",
# line too long (managed by black)
"E501",
# do not enforce existence of docstrings
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
# needed because of https://github.com/ambv/black/issues/144
"D202",
]
unfixable = ["B"]
[tool.pytest.ini_options]
addopts = "--reuse-db --randomly-seed=1521188766 --randomly-dont-reorganize"
DJANGO_SETTINGS_MODULE = "tests.settings"
[tool.semantic_release]
assets = []
commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
tag_format = "v{version}"
version_toml = ["pyproject.toml:tool.poetry.version"]
build_command = "poetry build"
[tool.semantic_release.branches.main]
match = "main"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
template_dir = "templates"
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = []
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = true
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
[tool.isort]
known_first_party="dpv"
multi_line_output=3
include_trailing_comma=true
force_grid_wrap=0
combine_as_imports=true
line_length=88
[tool.coverage.run]
source=["."]
[tool.coverage.report]
fail_under=100
exclude_lines = [
"pragma: no cover",
"pragma: todo cover",
"def __str__",
"def __unicode__",
"def __repr__",
]
omit= [
"*/migrations/*",
"*/apps.py",
"manage.py",
".tox/*",
]
show_missing = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"