-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (85 loc) · 1.98 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
89
90
91
92
93
94
95
96
97
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "my_package"
version = "0.0.1"
description = 'My package description'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["mykeywords"]
authors = [{ name = "My Name", email = "[email protected]" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"typer[all]==0.15.1",
]
[project.optional-dependencies]
dev = [
"bandit[toml]==1.8.2",
"black==24.10.0",
"flake8-bugbear==24.12.12",
"flake8-builtins==2.5.0",
"flake8-comprehensions==3.16.0",
"flake8-docstrings==1.7.0",
"flake8-encodings[classes]==0.5.1",
"flake8-return==1.2.0",
"flake8-simplify==0.21.0",
"flake8==7.1.1",
"isort==5.13.2",
"mypy==1.14.1",
"pep8-naming==0.14.1",
"pytest==8.3.4",
]
test = [
"pytest-cov==6.0.0",
"pytest==8.3.4",
]
[project.scripts]
my-cli = "my_package.cli:app"
[project.urls]
Documentation = "https://github.com/my_github_user/my_package#readme"
Issues = "https://github.com/my_github_user/my_package/issues"
Source = "https://github.com/my_github_user/my_package"
[tool.hatch.build]
artifacts = [
"my_package/static/**",
]
[tool.hatch.envs.dev]
features = ["dev"]
[tool.hatch.envs.test]
features = ["test"]
[tool.hatch.envs.default.scripts]
lint = [
"flake8 .",
"mypy . --check-untyped-defs",
"bandit -qr -c pyproject.toml .",
"black . --check --diff",
"isort . --check-only --diff",
]
fmt = [
"isort .",
"black .",
]
test = [
"pytest -v",
]
cov = [
"pytest -v --cov my_package --cov-report xml --cov-fail-under=80",
]
[tool.bandit]
exclude_dirs = ["tests"]
[tool.isort]
profile = "black"
[tool.mypy]
strict = true