-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (106 loc) · 2.66 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
[project]
name = "numerous-widgets"
version = "0.1.11"
dependencies = ["anywidget", "pydantic", "jinja2"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers"
]
readme = "README.md"
authors = [
{ name="Lasse Thomsen, Numerous ApS", email="lasse.thomsen@numerous.com" },
]
description = "Widgets and patterns for building apps using frameworks like Panel, Marimo, and Jupyter based on the AnyWidget library."
requires-python = ">=3.11"
[tool.setuptools]
package-dir = {"" = "python/src"}
packages.find = {where = ["python/src"], include = ["numerous.*"]}
[tool.setuptools.package-data]
"numerous.widgets" = ["static/*.mjs", "static/*.css"]
[project.optional-dependencies]
dev = [
"pre-commit",
"black",
"mypy",
"anywidget[dev]",
"python-dotenv",
"numerous",
"pytest",
"ruff==0.6.4",
"mypy==1.11.2",
"coverage==7.6.1",
"twine==5.1.1",
"mkdocs==1.6.0",
"mkdocstrings==0.26.2",
"mkdocstrings-python==1.12.2",
"mkdocs_snippet_plugin==1.0.2",
"mkdocs-material==9.5.46",
"mkdocs-gen-files==0.5.0",
"mkdocs-section-index==0.3.9",
"mkdocs-literate-nav==0.6.1",
# for testing related to frameworks
"marimo",
"panel"
]
[tool.poetry.dependencies]
python-dotenv = "^1.0.0"
[tool.semantic_release]
branch = "main"
commit_parser = "angular"
version_toml = ["pyproject.toml:project.version"]
template_dir = "templates"
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
[tool.semantic_release.changelog]
exclude_commit_patterns = [
'''chore(?:\([^)]*?\))?: .+''',
'''ci(?:\([^)]*?\))?: .+''',
'''refactor(?:\([^)]*?\))?: .+''',
'''style(?:\([^)]*?\))?: .+''',
'''test(?:\([^)]*?\))?: .+''',
'''build\((?!deps\): .+)''',
'''Merged? .*''',
'''initial commit''',
]
[tool.ruff]
src = ["python/src"]
exclude = ["python/examples"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101",
"D101",
"D103",
"D107",
"D203",
"D211",
"D212",
"FA100",
"FA102",
"ISC001",
"COM812",
"FBT001",
"FBT002",
"PLR0913",
"G004",
"EM101",
"TRY003",
"DTZ005",
"EM102",
"PLC0414",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.flake8-pytest-style]
# defaults changes in 0.6.0 which gives some issues
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.extend-per-file-ignores]
"python/tests/**" = ["INP001", "S101", "D100", "D103"]
[tool.mypy]
ignore_missing_imports = true
exclude = ["python/examples"]
[project.urls]
Homepage = "https://github.com/pypa/sampleproject"
Issues = "https://github.com/pypa/sampleproject/issues"