-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
65 lines (54 loc) · 1.36 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "placeholder"
version = "0.1.0"
description = "placeholder"
license = "MIT"
authors = ["Shichao Song <[email protected]>"]
readme = "README.md"
repository = "https://github.com/placeholder/placeholder"
keywords = ["placeholder"]
packages = [{include = "placeholder", from = "src"}]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.3.3"
[[tool.poetry.source]]
name = "mirrors"
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
priority = "supplemental"
[tool.pytest.ini_options]
pythonpath = "src"
[tool.ruff]
fix = true
line-length = 100
target-version = "py310"
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
ignore = [
"RUF001", # ambiguous-unicode-character-string
]
[tool.ruff.lint.isort]
lines-between-types = 1
lines-after-imports = 2