-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
125 lines (107 loc) · 3.15 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "spiel"
version = "0.5.1"
description = "A framework for building and presenting richly-styled presentations in your terminal using Python."
readme="README.md"
homepage="https://github.com/JoshKarpel/spiel"
repository="https://github.com/JoshKarpel/spiel"
documentation="https://www.spiel.how"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Graphics :: Presentation",
"Typing :: Typed",
]
keywords = [
"presentation",
"slides",
"tui",
"terminal",
]
authors = ["JoshKarpel <[email protected]>"]
license = "MIT"
include = ["py.typed", "demo/*", "spiel.css"]
[tool.poetry.dependencies]
python = ">=3.10,<4"
rich = ">=13.2"
typer = ">=0.6"
pillow = ">=8"
textual = "==0.11.1"
watchfiles = ">=0.18"
more-itertools = ">=9"
[tool.poetry.group.dev.dependencies]
pre-commit = ">=3"
pytest = ">=7"
pytest-cov = ">=3"
pytest-xdist = ">=3"
pytest-asyncio = ">=0.20"
pytest-mock = ">=3"
hypothesis = ">=6"
mypy = ">=1"
mkdocs = ">=1.4"
mkdocs-material = ">=9"
mkdocstrings = {extras = ["python"], version = ">=0.19.0"}
textual = {extras = ["dev"], version = "==0.11.1"}
[tool.poetry.scripts]
spiel = 'spiel.cli:cli'
[tool.black]
line-length = 100
include = "\\.pyi?$"
[tool.isort]
profile = "black"
line_length = 100
[tool.pycln]
all = true
[tool.pytest.ini_options]
addopts = ["--strict-markers"]
testpaths = ["tests", "spiel", "docs"]
markers = ["slow"]
asyncio_mode = "auto"
[tool.mypy]
pretty = false
show_error_codes = true
files = ["."]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
disallow_any_generics = true
warn_unused_configs = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
warn_redundant_casts = true
ignore_missing_imports = true
[tool.ruff]
line-length = 100
select = [
"I", # https://beta.ruff.rs/docs/rules/#isort-i
"F", # https://beta.ruff.rs/docs/rules/#pyflakes-f
"E", # https://beta.ruff.rs/docs/rules/#error-e
"W", # https://beta.ruff.rs/docs/rules/#warning-w
"T20", # https://beta.ruff.rs/docs/rules/#flake8-print-t20
"PIE", # https://beta.ruff.rs/docs/rules/#flake8-pie-pie
"PLC", # https://beta.ruff.rs/docs/rules/#convention-plc
"PLE", # https://beta.ruff.rs/docs/rules/#error-ple
"PLW", # https://beta.ruff.rs/docs/rules/#warning-plw
"PTH", # https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
"PGH", # https://beta.ruff.rs/docs/rules/#pygrep-hooks-pgh
"RUF", # https://beta.ruff.rs/docs/rules/#ruff-specific-rules-ruf
]
ignore = [
"E501", # line length exceeds limit
]