-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (64 loc) · 1.83 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
[tool.poetry]
name = "igen"
version = "1.7.2"
description = "icon generator for linux"
authors = ["Dhruvin Shah <[email protected]>"]
license = "AGPL"
readme = "README.md"
package-mode = true
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
Pillow = "^9.5.0"
CairoSVG = "^2.7.0"
typer = { extras = ["all"], version = "^0.11.0" }
[tool.poetry.group.dev.dependencies]
types-Pillow = "^9.5.0.2"
pyinstaller = "^5.10.1"
pytest = "^7.3.1"
mypy = "^1.2.0"
ruff = "^0.3.4"
debugpy = "^1.8.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
igen = "src.igen.__main__:cli"
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
# virtual environment
".env",
".venv",
"env",
# cache directories, etc.:
".git",
".mypy_cache",
".pytype",
]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"FA", # flake8-future-annotations
"I", # isort
"RUF", # Ruff-specific and unused-noqa
"UP", # pyupgrade
# Flake8 base rules
"E", # pycodestyle Error
"F", # Pyflakes
"W", # pycodestyle Warning
# PYI: only enable rules that always autofix, avoids duplicate # noqa with flake8-pyi
# See https://github.com/plinss/flake8-noqa/issues/22
"PYI009", # use `...`, not `pass`, in empty class bodies
"PYI010", # function bodies must be empty
"PYI012", # class bodies must not contain `pass`
"PYI013", # non-empty class bodies must not contain `...`
"PYI016", # duplicate union member
"PYI020", # quoted annotations are always unnecessary in stubs
"PYI025", # always alias `collections.abc.Set` as `AbstractSet` when importing it
"PYI032", # use `object`, not `Any`, as the second parameter to `__eq__`
"PYI055", # multiple `type[T]` usages in a union
"PYI058", # use `Iterator` as the return type for `__iter__` methods
]