-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
62 lines (54 loc) · 1.17 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
[build-system]
requires = ["flit-core >= 3.4"]
build-backend = "flit_core.buildapi"
[project]
name = "cataloguer"
version = "0.1.0"
description = "Script which collects WoW add-on metadata from GitHub"
requires-python = ">= 3.11"
license.file = "LICENSE"
dependencies = [
"aiohttp-client-cache[sqlite]",
"aiohttp",
"attrs",
"cattrs",
"click",
"structlog",
"yarl",
]
[project.optional-dependencies]
dev = [
"poethepoet",
"ruff",
]
[project.entry-points."pipx.run"]
cataloguer = "cataloguer:cli"
[tool.pyright]
strict = ["cataloguer.py"]
[tool.ruff]
line-length = 99
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B0", # flake8-bugbear excl. opinionated rules
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.poe.env]
__POE_TARGET = "cataloguer.py"
[tool.poe.tasks]
_black = "ruff format $__POE_TARGET"
_isort = "ruff --select I --fix $__POE_TARGET"
format.sequence = [
"_black",
"_isort",
]
lint = "ruff --output-format grouped --show-source $__POE_TARGET"