-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (51 loc) · 1.51 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
[tool.poetry]
name = "headless-kivy"
version = "0.9.7"
description = "Headless renderer for Kivy framework"
authors = ["Sassan Haradji <sassanh@gmail.com>"]
license = "Apache-2.0"
readme = "README.md"
homepage = 'https://github.com/sassanh/headless-kivy/'
repository = 'https://github.com/sassanh/headless-kivy/'
keywords = ['kivy', 'headless', 'display', 'pytest', 'test']
packages = [{ include = "headless_kivy" }, { include = "headless_kivy_pytest" }]
[tool.poetry.dependencies]
python = "^3.11"
typing-extensions = "^4.8.0"
numpy = { version = "^1.24.2" }
kivy = { version = "^2.2.1" }
pypng = { version = "^0.20220715.0", optional = true }
python-strtobool = "^1.0.0"
[tool.poetry.extras]
default = []
test = ['pypng']
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.24.2"
ruff = "^0.6.1"
pyright = "^1.1.376"
pytest = "^8.2.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
lint = "ruff check . --unsafe-fixes"
typecheck = "pyright -p pyproject.toml ."
sanity = ["typecheck", "lint"]
[tool.ruff]
lint.select = ['ALL']
lint.ignore = ['INP001', 'PLR0911', 'D203', 'D213']
lint.fixable = ['ALL']
lint.unfixable = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "PLR0913", "PLR0915"]
"headless_kivy_pytest/*" = ["S101", "PLR0913", "PLR0915"]
[tool.ruff.format]
quote-style = 'single'
[tool.isort]
profile = "black"
[tool.pyright]
exclude = ['typings']