-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
129 lines (115 loc) · 3.19 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
[build-system]
requires = ["flit_core >=3.9.0,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "ipyprofiler"
description = "Jupyter Widgets for visualizing profiler data."
version = "0.1.0"
requires-python = ">=3.8"
dependencies = [
"ipywidgets >=7,<9",
"jinja2 >=3.0.3",
"traitlets >=5.1",
]
optional-dependencies.pyinstrument = ["pyinstrument >=4.4.0"]
authors = [{name = "ipyprofiler contributors"}]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: File Formats :: JSON :: JSON Schema",
"Topic :: File Formats :: JSON",
]
license.file = "LICENSE"
[project.urls]
"Bug Tracker" = "https://github.com/deathbeds/ipyprofiler/issues"
Changelog = "https://github.com/deathbeds/ipyprofiler/blob/main/CHANGELOG.md"
Documentation = "https://ipyprofiler.rtfd.io"
PyPI = "https://pypi.org/project/ipyprofiler"
Source = "https://github.com/deathbeds/ipyprofiler/tree/main"
[tool.flit.external-data]
directory = "src/_d"
[tool.flit.sdist]
include = ["examples/files/**/*.ipynb"]
exclude = ["examples/files/**/.ipynb_checkpoints/**"]
# ruff #########################################################################
[tool.ruff]
cache-dir = "build/.cache/ruff"
extend-include = ["*.ipynb"]
extend-exclude = ["Untitled*.*", "untitled*.*", "**/.ipynb_checkpoints"]
include = ["{tests,src/ipyprofiler,examples/files}/**/*.{py,ipynb}"]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101",
"ANN102",
"ANN204",
"ANN401",
"COM812",
"D203",
"D211",
"D213",
"FBT001",
"FBT002",
"ISC001",
"N812",
"TCH001",
"UP006",
"UP035",
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = [
"T201",
"ANN201",
"D103",
"ANN001",
"PLR2004",
"ERA001",
"PLE1142",
"F811",
"S310",
"T203",
]
"04_sqlalchemy.ipynb" = [
"D105",
"D101",
]
"tests/**/*.py" = ["S101", "SLF001", "PLR2004", "T201", "T203"]
[tool.ruff.lint.isort]
known-first-party = ["ipyprofiler"]
# pytest #######################################################################
[tool.pytest.ini_options]
cache_dir = "build/.cache/pytest"
generate_report_on_test = true
testpaths = ["tests"]
addopts = ["-vv", "--color=yes", "--tb=long", "--durations=3"]
filterwarnings = ["ignore::DeprecationWarning:traitlets.traitlets:"]
# coverage #####################################################################
[tool.coverage.run]
data_file = "build/reports/test/.coverage"
parallel = true
branch = true
[tool.coverage.html]
show_contexts = true
[tool.coverage.report]
exclude_lines = [
"except ImportError as err:",
"if TYPE_CHECKING:",
"pragma: no cover",
"NotImplementedError",
"@abc.abstractmethod",
]