-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (51 loc) · 1.19 KB
/
pyproject.toml
File metadata and controls
59 lines (51 loc) · 1.19 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
53
54
55
56
57
58
59
[build-system]
requires = ["setuptools>=63", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "mypackage"
version = "0.0.0"
description = "My Package"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "Antoine Jeannot", email = "antoine.jeannot1002+github@gmail.com"},
]
dependencies = []
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.1",
"ruff==0.9.4",
"pytest>=8.3.4",
]
[tool.setuptools]
packages = ["mypackage"]
[tool.setuptools.package-data]
mypackage = [
"py.typed",
]
[tool.ruff]
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"B", # flake8-bugbear
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"RUF", # ruff-specific rules
"PT", # pytest style
"SIM", # simplify
"TCH", # type-checking
"ARG", # unused arguments
"C4", # comprehensions
]
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function call in argument defaults
"C901", # Too complex
"N999", # Invalid module name
]
[tool.ruff.lint.isort]
known-first-party = ["mypackage"]