forked from tomasr8/pyjsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (65 loc) · 1.46 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
[project]
name = "python-jsx"
authors = [{ name = "Tomas Roun", email = "[email protected]" }]
description = "JSX transpiler for Python"
readme = "README.md"
requires-python = ">=3.12"
keywords = ["JSX", "React", "transpiler"]
license = "Apache-2.0"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
dependencies = []
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"build",
"uv",
"pytest",
"pytest-snapshot",
"pytest-cov",
"ruff",
"pyright",
]
[project.urls]
Homepage = "https://github.com/tomasr8/pyjsx"
Github = "https://github.com/tomasr8/pyjsx"
[tool.pyright]
include = ["tests", "pyjsx"]
exclude = ["pyjsx/codecs.py"] # Typeshed has incorrect types for `CodecInfo.decode`
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D",
"ANN002",
"ANN003",
"ANN101",
"ANN204",
"ANN401",
"COM812",
"BLE001",
"RET503",
"ISC001",
"N802",
"N803",
"N806",
"N818",
"S101",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN001", "ANN201", "ANN202", "PLR2004"]
"examples/*" = ["I001", "F401"]
[tool.ruff]
line-length = 120
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.hatch.version]
path = "pyjsx/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["pyjsx"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"