forked from python-scim/scim2-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (103 loc) · 2.62 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "scim2-models"
version = "0.1.12"
description = "SCIM2 models serialization and validation with pydantic"
authors = ["Yaal Coop <[email protected]>"]
license = "Apache"
readme = "README.md"
keywords = ["scim", "scim2", "provisioning", "pydantic"]
documentation = "https://scim2-models.readthedocs.io"
repository = "https://github.com/yaal-coop/scim2-models"
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Environment :: Web Environment",
"Programming Language :: Python",
"Operating System :: OS Independent",
]
[tool.poetry.dependencies]
python = "^3.9"
pydantic = {version = "^2.7.0", extras = ["email"]}
[tool.poetry.group.dev.dependencies]
pytest = "^8.2.1"
pytest-coverage = "^0.0"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
autodoc-pydantic = "^2.2.0"
shibuya = "^2024.5.15"
sphinx = "^7.3.7"
sphinx-togglebutton = "^0.3.2"
myst-parser = "^3.0.1"
[tool.coverage.run]
source = [
"scim2_models",
"tests",
]
omit = [".tox/*"]
branch = true
[tool.coverage.report]
exclude_lines = [
"@pytest.mark.skip",
"pragma: no cover",
"raise NotImplementedError",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
"E722", # bare-except
]
[tool.ruff.lint.isort]
force-single-line = true
[too.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
addopts = "--doctest-modules --doctest-glob='*.rst'"
doctest_optionflags= "ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
skipsdist = true
envlist =
style
py39
py310
py311
py312
doc
coverage
[testenv]
allowlist_externals = poetry
commands =
poetry install
poetry run pytest --showlocals --full-trace {posargs}
[testenv:style]
commands =
pip install pre-commit
pre-commit run --all-files
[testenv:doc]
commands =
poetry install --with doc --without dev
poetry run sphinx-build --builder html doc build/sphinx/html
[testenv:coverage]
commands =
poetry install
poetry run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered {posargs}
poetry run coverage html
"""