-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
38 lines (32 loc) · 831 Bytes
/
Copy pathpyproject.toml
File metadata and controls
38 lines (32 loc) · 831 Bytes
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
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "time-tracer-tools"
version = "0.0.0"
description = "Internal Python tooling for the time_tracer repository"
requires-python = ">=3.11"
dependencies = ["markdown-it-py>=3.0.0,<4"]
[tool.setuptools.packages.find]
where = ["."]
include = ["tools*"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # 基础风格
"F", # 语法错误
"B", # 逻辑漏洞 (Bugprone)
"UP", # 现代化 (Modernize)
"I", # 排序 Import
"A", # 防止覆盖内置变量
"N", # 命名规范
]
ignore = [
"E501", # 交给 ruff format 处理长行
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["E402"]