-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (44 loc) · 1.28 KB
/
Copy pathpyproject.toml
File metadata and controls
52 lines (44 loc) · 1.28 KB
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
[project]
name = "pysample"
version = "1.0.0"
description = "生成软件著作权文档的 python 工具"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"pathspec>=1.1",
"typer-slim>=0.24.0",
"python-docx>=1.2",
]
authors = [{name = "Xiaoyu Guo", email = "biggates2010@gmail.com"}]
license = "MIT"
license-files = ["licenses/*"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
only-include = ["main.py"]
[project.scripts]
pysample = "main:app"
[project.urls]
Homepage = "https://github.com/EaphoneTech/pysample"
[project.optional-dependencies]
# external 后端(委托 GPL-3.0 的 copyright-code-extractor)作为可选依赖。
# 默认 `uv tool install pysample` 仅含 MIT/BSD 依赖(保持许可证纯净);
# 仅在需要使用 `--backend external` 时通过 `uv tool install "pysample[external]"` 安装。
external = ["copyright-code-extractor>=0.2.1"]
[tool.ruff.lint]
ignore = ["F821", "E501", "RUF001", "RUF002", "RUF003"]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"PERF", # "perflint"
"RUF", # ruff specific rules
]
[dependency-groups]
dev = [
"ruff>=0.16",
]