-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
74 lines (65 loc) · 1.64 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
[project]
name = "kawaiired"
version = "1.0.1"
description = "A Python wrapper for the kawaii.red API."
authors = [
{ name = "Keksi", email = "[email protected]" }
]
dependencies = [
"httpx>=0.27.0",
]
readme = "README.md"
requires-python = ">= 3.8"
[tool.uv]
dev-dependencies = [
"ruff>=0.7.0",
]
[tool.ruff]
fix = true
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"S", # bandit
"B", # flake8-bugbear
"C", # flake8-comprehensions
"D", # flake8-docstrings
"Q", # flake8-quotes
# "G", # flake8-logging-format
"UP", # pyupgrade
"ANN", # flake8-annotations
"DTZ", # flake8-datetimez
"TID", # flake8-tidy-imports
"RUF", # ruff specific rules
"T20", # flake8-print
"PLC", # pylint convention
"PLE", # pylint errors
# "PLR", # pylint refactor
"PLW", # pylint warnings
"I", # isort
]
ignore = [
# Missing Docstrings
"D100","D101","D103","D104","D105","D106","D107",
# Docstring Whitespace
"D203","D212","D214","D215",
# Docstring Content
"D400","D402","D404","D405","D406","D407","D408","D409","D410","D411","D412","D413","D414","D416","D417",
# Type Annotations
"ANN002","ANN003","ANN101","ANN102","ANN204","ANN206","ANN401",
# pseudo-random generators
"S311",
]
[tool.ruff.lint.isort]
known-first-party = ["kawaiired"]
lines-after-imports = 2
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["kawaiired"]