-
Notifications
You must be signed in to change notification settings - Fork 294
/
pyproject.toml
91 lines (78 loc) · 2.03 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dotbot"
authors = [
{ name = "Anish Athalye", email = "me@anishathalye.com" },
]
description = "A tool that bootstraps your dotfiles"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Utilities",
]
keywords = ["dotfiles"]
dynamic = ["version"]
dependencies = [
"PyYAML>=6.0.1,<7",
]
[project.scripts]
dotbot = "dotbot.cli:main"
[project.urls]
homepage = "https://github.com/anishathalye/dotbot"
repository = "https://github.com/anishathalye/dotbot.git"
issues = "https://github.com/anishathalye/dotbot/issues"
[tool.hatch.version]
path = "src/dotbot/__init__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"lib/",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9", "pypy3.10"]
# the default configuration for the hatch-test environment
# (https://hatch.pypa.io/latest/config/internal/testing/#dependencies) uses a
# version of coverage[toml] that is incompatible with Python 3.7, so we override
# the test dependencies for Python 3.7 here
[tool.hatch.envs.hatch-test.overrides]
name."^py3\\.7$".set-dependencies = [
"coverage-enable-subprocess",
"coverage[toml]",
"pytest",
"pytest-mock",
"pytest-randomly",
"pytest-rerunfailures",
"pytest-xdist[psutil]",
]
[tool.coverage.run]
omit = [
"*/tests/*",
"*/dotfiles/*" # the tests create some .py files in a "dotfiles" directory
]
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
"pytest",
]
[tool.hatch.envs.types.scripts]
check = "mypy --strict --install-types --non-interactive {args:src tests}"
[tool.hatch.envs.coverage]
detached = true
dependencies = [
"coverage",
]
[tool.hatch.envs.coverage.scripts]
html = "coverage html"
xml = "coverage xml"
[tool.ruff]
extend-exclude = [
"lib/*.py"
]
lint.ignore = [
"FA100",
]