-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (59 loc) · 1.48 KB
/
pyproject.toml
File metadata and controls
70 lines (59 loc) · 1.48 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
[project]
name = "py-cppmodel"
version = "0.0.1"
description = "A Python wrapper around clang's python bindings to generate a simple Python model of a C++ translation unit."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "J.B. Coe", email = "jonathanbcoe@gmail.com" }]
dependencies = [
"clang>=14.0",
"libclang>=18.1.1",
]
[project.urls]
Repository = "https://github.com/jbcoe/py_cppmodel"
[dependency-groups]
dev = [
"ipython>=8.12.3",
"jupyter>=1.1.1",
"parameterized>=0.9.0",
"pre-commit>=4.5.1",
"ty>=0.0.14",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
include = [
"py_cppmodel.py",
"LICENSE",
"README.md",
]
[tool.hatch.build.targets.wheel]
include = ["py_cppmodel.py"]
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
"B", # Bugbear
"E", # Pycodestyle
"F", # Pyflakes
"I", # Isort
"W", # Pycodestyle
]
ignore = [
"B006", # Do not use mutable data structures for argument defaults TODO: Fix this.
"B018", # Found useless expression. Either assign it to a variable or remove it. TODO: Fix this.
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.format]
quote-style = "double"
[[tool.ty.overrides]]
include = ["py_cppmodel.py"]
[tool.ty.overrides.rules]
unresolved-attribute = "ignore"