-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
142 lines (126 loc) · 2.61 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel", "build"]
[project]
authors = [
{name = "gdsfactory community", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent"
]
dependencies = [
"klayout >= 0.29.4",
"fastapi",
"uvicorn[standard]",
"jinja2",
"pydantic_extra_types>=2.6.0"
]
description = "KLayout API implementation of gdsfactory"
name = "kweb"
readme = "README.md"
requires-python = ">=3.11"
version = "2.0.4"
[project.optional-dependencies]
dev = [
"mypy",
"pre-commit",
"gitpython",
"pylsp-mypy",
"types-cachetools",
"towncrier",
"tbump"
]
docs = [
"sphinx",
"docutils==0.21.2",
"sphinx_rtd_theme",
"sphinxcontrib-video",
"sphinx-autodoc-typehints",
"sphinx-book-theme==1.1.3",
"sphinx-click",
"sphinx-copybutton",
"sphinx-markdown-tables==0.0.17",
"myst-parser",
"matplotlib",
"nbsphinx",
"autodoc_pydantic"
]
ipy = [
"ipython",
"ipywidgets",
"ipyevents"
]
tests = ["pytest", "pytest-cov"]
[tool.black]
exclude = ''' # Specify the files/dirs that should be ignored by the black formatter
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| env
| _build
| buck-out
| build
| dist
)/
'''
include = '\.pyi?$'
line-length = 88 # Specify the line length
target-version = ['py310'] # Specify your Python version
[tool.djlint]
extension = "html"
format_css = true
ignore = "H021,H006,H013"
[tool.isort]
include_trailing_comma = true
line_length = 88
multi_line_output = 3
skip = ["kweb/__init__.py"]
[tool.mypy]
plugins = "pydantic.mypy, numpy.typing.mypy_plugin"
python_version = "3.10"
strict = true
[[tool.mypy.overrides]]
implicit_reexport = true
module = "kweb"
[tool.pylsp-mypy]
enabled = true
live_mode = true
strict = true
[tool.pytest.ini_options]
# addopts = --tb=no
addopts = '--tb=short'
norecursedirs = ["extra/*.py"]
python_files = ["src/*.py", "tests/*.py"]
testpaths = ["tests"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.tbump]
[[tool.tbump.file]]
src = "README.md"
[[tool.tbump.file]]
search = 'version = "{current_version}"'
src = "pyproject.toml"
[[tool.tbump.file]]
search = '__version__ = "{current_version}"'
src = "src/kweb/__init__.py"
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[tool.tbump.version]
current = "2.0.4"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''