-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
96 lines (75 loc) · 2.07 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
[project]
name = "python-redux"
dynamic = ["version"]
description = "Redux implementation for Python"
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.11"
keywords = ['store', 'redux', 'reactive', 'autorun']
dependencies = ["python-immutable >= 1.1.1", "python-strtobool >= 1.0.0"]
[tool.uv]
dev-dependencies = [
"poethepoet >= 0.24.4",
"pyright >= 1.1.376",
"ruff >= 0.6.0",
"pytest >= 8.1.1",
"pytest-cov >= 4.1.0",
"pytest-timeout >= 2.3.1",
"pytest-mock >= 3.14.0",
"tenacity >= 8.2.3",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "redux/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "setup_scm_schemes:local_scheme"
[tool.hatch.build]
packages = ["redux", "redux_pytest"]
[tool.hatch.build.targets.sdist]
packages = ["redux", "redux_pytest"]
[[project.authors]]
name = "Sassan Haradji"
email = "sassanh@gmail.com"
[project.scripts]
demo = "demo:main"
todo_demo = "todo_demo:main"
[tool.poe.tasks]
lint = "ruff check . --unsafe-fixes"
typecheck = "pyright -p pyproject.toml ."
test = "pytest --cov --cov-report=term-missing --cov-report=html --cov-report=xml"
sanity = ["typecheck", "lint", "test"]
[tool.ruff]
target-version = 'py311'
[tool.ruff.lint]
select = ['ALL']
ignore = ['INP001', 'PLR0911', 'D203', 'D213']
fixable = ['ALL']
unfixable = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "PLR0915", "PLR2004"]
[tool.ruff.format]
quote-style = 'single'
[tool.isort]
profile = "black"
[tool.pyright]
exclude = ['typings', '.venv']
filterwarnings = 'error'
[tool.pytest.ini_options]
log_cli = 1
log_cli_level = 'ERROR'
timeout = 1
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:"]
[tool.coverage.run]
source = ['redux', 'redux_pytest']
omit = ['redux_pytest/plugin.py', 'redux/_version.py', "setup_scm_schemes.py"]
[project.entry-points.pytest11]
redux = "redux_pytest.plugin"