-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (137 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
151 lines (137 loc) · 3.54 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
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
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools>=70", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pythonhere"
dynamic = ["version"]
description = "Here is the Kivy based app to run code from the Jupyter magic %there"
readme = { file = "README.rst", content-type = "text/x-rst" }
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "b3b", email = "ash.b3b@gmail.com" },
]
keywords = ["android", "ipython", "jupyter", "magic", "kivy"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"herethere[magic]>=0.1.0",
"ipython",
"ipywidgets",
"Pillow",
]
[dependency-groups]
dev = [
{ include-group = "docker" },
"build",
"codecov",
"docutils",
"ifaddr",
"kivy==2.3.1",
"nest-asyncio2==1.7.2",
"pylint",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
"ruff",
"twine",
]
docker = [
"jupytext==1.19.3",
]
[project.urls]
Homepage = "https://github.com/b3b/ipython-pythonhere"
Changelog = "https://github.com/b3b/pythonhere/blob/master/CHANGELOG.rst"
[tool.uv]
environments = [
"sys_platform == 'linux'",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.setuptools]
packages = [
"pythonhere",
"pythonhere.magic_here",
"pythonhere.ui_here",
]
[tool.setuptools.dynamic]
version = { attr = "pythonhere.version_here.__version__" }
[tool.setuptools.package-data]
pythonhere = [
"*.kv",
"data/logo/*.png",
"ui_here/*.kv",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # import sorting
"UP", # pyupgrade
"B", # flake8-bugbear
"TRY", # exception handling checks
"PL", # pylint-style checks supported by Ruff
]
ignore = [
"PLC0207", # keep simple last-part string splits when they are clearer
"PLC0415", # allow delayed Kivy/Android imports that control side effects
"TRY002", # keep existing broad app-facing exceptions for now
"TRY003", # allow direct exception messages in this small app
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"PLR0913", # parametrized tests naturally pass several fixtures/values
"PLR2004", # literal expected values are readable in tests
"PLW0603", # tests may intentionally exercise global namespace behavior
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pylint.main]
fail-under = 10.0
ignore = ["migrations"]
py-version = "3.10"
[tool.pylint."messages control"]
disable = [
"attribute-defined-outside-init",
"bad-inline-option",
"broad-exception-caught",
"broad-exception-raised",
"deprecated-pragma",
"duplicate-code",
"file-ignored",
"import-outside-toplevel",
"import-error",
"inconsistent-return-statements",
"invalid-name",
"locally-disabled",
"logging-too-few-args",
"missing-function-docstring",
"missing-module-docstring",
"no-member",
"possibly-used-before-assignment",
"protected-access",
"raw-checker-failed",
"suppressed-message",
"too-few-public-methods",
"too-many-instance-attributes",
"unnecessary-ellipsis",
"unused-argument",
"unused-wildcard-import",
"use-symbolic-message-instead",
"useless-suppression",
"wildcard-import",
"wrong-import-order",
]
enable = ["c-extension-no-member"]