-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
121 lines (103 loc) · 2.57 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
[project]
name = "xotl.crdt"
description = "CRDTs for Python (a playground)"
authors = [
{ name = "Merchise Autrement", email="[email protected]" }
]
license="MIT"
readme="README.rst"
requires-python = ">= 3.10"
homepage="https://gitlab.merchise.org/merchise/xotl.crdt"
documentation="https://merchise-autrement.gitlab.io/xotl.crdt"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"xotl.tools>=2.2.5,<4.0; python_version <= '3.11'",
"xotl.tools>=3.0.0a5,<4.0; python_version > '3.11'",
]
dynamic = ["version"]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/xotl/crdt/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/xotl"]
[tool.rye]
managed = true
dev-dependencies = [
"hypothesis~=6.91.0",
"pytz>=2023.3.post1",
"ruff==0.4.5",
"isort~=5.13.2",
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
"coverage[toml]>=7.4.0",
"mypy>=1.8.0",
"sphinx>=7.1.2",
"types-python-dateutil",
"ipython>=8.12.3",
"tox>=4.12.1",
"python-dateutil>=2.8.2",
"furo>=2024.1.29",
]
[tool.isort]
profile = "black"
line_length = 85
src_paths = ["src/"]
skip_gitignore = true
[tool.ruff]
line-length = 85
target-version = "py311"
[tool.ruff.lint]
ignore = [
"E501", # line-length is left to the formatter
"E731", # do not assign a `lambda` expression, use a `def` (we use it a lot)
]
preview = true
exclude = ["src/xotl/crdt/_version.py"]
[tool.ruff.format]
preview = true
exclude = ["src/xotl/crdt/_version.py"]
[tool.coverage.run]
branch = false
omit = ["src/xotl/crdt/_version.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: no-cover",
"def __repr__",
"def __hash__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"return NotImplemented",
"if __name__ == .__main__.:",
"if t.TYPE_CHECKING:",
"if TYPE_CHECKING:",
]
fail_under = 95
skip_covered = true
show_missing = true
[tool.pyright]
strictParameterNoneValue = false
useLibraryCodeForTypes = true
reportUnusedImport = true
reportUnusedClass = true
reportUnnecessaryCast = true
reportDuplicateImport = true
reportUnnecessaryTypeIgnoreComment = "warning"
reportShadowedImports = "warning"
stubPath = ""
include = [
"xotl/crdt",
]