generated from tugrulates/template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (89 loc) · 2.04 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
98
99
100
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "contacts"
version = "0.0.1"
description = 'Manage contacts'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["contacts"]
authors = [{ name = "Tugrul Ates", 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",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"email_validator==2.2.0",
"phonenumberslite==8.13.52",
"pydantic==2.10.4",
"rich==13.9.4",
"typer[all]==0.15.1",
"Unidecode==1.3.8",
]
[project.optional-dependencies]
dev = [
"bandit[toml]==1.8.0",
"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]
contacts = "contacts.cli:app"
[project.urls]
Documentation = "https://github.com/tugrulates/contacts#readme"
Issues = "https://github.com/tugrulates/contacts/issues"
Source = "https://github.com/tugrulates/contacts"
[tool.hatch.build]
artifacts = [
"contacts/applescript/*.applescript",
]
[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 -vv",
]
cov = [
"pytest --cov contacts --cov-report xml --cov-fail-under=80",
]
[tool.bandit]
exclude_dirs = ["tests"]
[tool.isort]
profile = "black"
[tool.mypy]
strict = true