-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (104 loc) · 2.58 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (104 loc) · 2.58 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python-jsonlogic"
version = "0.1.0"
description = "An extensible and sane implementation of JsonLogic"
readme = "README.rst"
authors = [
{name = "Victorien", email = "contact@vctrn.dev"}
]
license = 'MIT'
license-files = ['LICENSE']
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"typing-extensions>=4.10.0; python_version < '3.13'",
]
[dependency-groups]
dev = [
"pyright",
"ruff",
"pytest>=8.4.0",
"tomli",
"ruff>=0.11.3",
"tox>=4.25.0",
"tox-gh>=1.5.0",
"tox-uv>=1.25.0",
]
docs = [
"furo",
"sphinx",
"sphinx-lint",
"sphinx-paramlinks",
]
[tool.hatch.build.targets.wheel]
packages = ["src/jsonlogic"]
[tool.uv]
default-groups = ['dev']
required-version = ">=0.9.0"
[tool.ruff]
src = ["src"]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
typing-modules = ["jsonlogic._compat"]
preview = true
explicit-preview-rules = true
select = [
"E", # pycodestyle (E)
"W", # pycodestyle (W)
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
"PL", # Pylint
"RUF", # Ruff
"RUF022", # Ruff-preview
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"FA", # flake8-future-annotations
"PIE", # flake8-pie
"T20", # flake8-print
"RSE", # flake8-raise
"PTH", # flake8-use-pathlib
]
ignore = [
"PLR2004",
"PLR0911",
]
[tool.ruff.lint.isort]
known-first-party = ["jsonlogic"]
[tool.pytest.ini_options]
pythonpath = "src"
[tool.tox]
requires = ["tox>=4.21"]
env_list = ["py310", "py311", "py312", "py314"]
[tool.tox.env_run_base]
description = "Run test under {base_python}"
runner = "uv-venv-lock-runner"
dependency_groups = ["dev"]
uv_python_preference = "only-managed"
uv_sync_flags = ["--no-python-downloads"]
commands = [["pytest"]]
[tool.tox.gh.python]
"3.10" = ["py310"]
"3.11" = ["py311"]
"3.12" = ["py312"]
"3.13" = ["py313"]
"3.14" = ["py314"]