-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
88 lines (75 loc) · 1.67 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
[project]
name = "pyfuture"
dynamic = ["version"]
description = ""
authors = [
{name = "Zhan Rongrui", email = "[email protected]"},
]
dependencies = [
"libcst>=1.2.0",
"typer>=0.9.0",
"loguru>=0.7.2",
"rich>=13.7.0",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
watch = ["watchfiles"]
all = ["pyfuture[watch]"]
[project.urls]
Homepage = "https://github.com/zrr-lab/pyfuture.git"
Repository = "https://github.com/zrr-lab/pyfuture.git"
[project.scripts]
pyfuture = "pyfuture.__main__:app"
[tool.ruff]
line-length = 120
src = ["pyfuture", "tests"]
exclude = ["tests/fixtures"]
target-version = "py311"
[tool.ruff.lint]
select = [
"Q",
"F",
"SIM",
"UP",
"FA", # flake8-annotations
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"E", # pycodestyle
"W", # pycodestyle
"YTT", # flake8-2020
]
[tool.ruff.lint.isort]
known-first-party = ["pyfuture"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "I002"]
[tool.pyright]
include = ["pyfuture"]
exclude = [
"pdm_build.py",
"pyfuture/hooks/",
]
[tool.pdm.dev-dependencies]
test = [
"xdoctest",
"pytest",
"pytest-cov",
"coverage",
]
backend = ["pdm-backend"]
[tool.pdm.scripts]
cov ={ composite = ["pytest ./tests ./pyfuture --cov=pyfuture --xdoc", "coverage xml"]}
[tool.pdm.version]
source = "scm"
write_to = "pyfuture/__version__.py"
write_template = "__version__ = '{}'"
[tool.pdm.build]
includes = ["pyfuture"]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"