-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
89 lines (78 loc) · 1.68 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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core",
]
[tool.poetry]
authors = [
"eggplants <[email protected]>",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
description = "Get your Pixiv token (for running upbit/pixivpy)"
keywords = [
"pixiv",
"api",
"token",
]
name = "gppt"
packages = [
{ include = "gppt" },
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/eggplants/get-pixivpy-token"
version = "4.1.0"
[tool.poetry.dependencies]
python = ">=3.8,<4"
pixivpy3 = "^3.7.3"
pwinput = "^1.0.3"
requests = "^2.31.0"
selenium = "^4.14.0"
[tool.poetry.group.dev.dependencies]
mypy = ">=0.991,<1.14"
pre-commit = ">=2.20,<4.0"
taskipy = "^1.10.3"
types-requests = "^2.28.11.15"
pytest = ">=7.2.2,<9.0.0"
pytest-cov = ">=4,<6"
[tool.poetry.scripts]
gppt = "gppt.main:main"
[tool.black]
line-length = 120
target-version = [
'py39',
]
[tool.ruff]
line-length = 120
lint.select = [
"ALL",
]
lint.ignore = [
"ANN101",
"D",
]
lint.per-file-ignores."gppt/auth.py" = [
"T201", # `print` found
]
lint.per-file-ignores."gppt/main.py" = [
"T201", # `print` found
"T203", # `pprint` found
]
[tool.mypy]
pretty = true
python_version = "3.8"
show_error_codes = true
strict = true
[tool]
[tool.taskipy.tasks]
test = "pytest --cov=gppt --cov-report=term"
"test:html" = "task test --cov-report=html && open htmlcov/index.html"
"test:ci" = "task test --cov-report=xml:cov.xml"
lint = "pre-commit run -a"
profile = "python -m cProfile"