Files
dotbot/pyproject.toml
2026-01-17 14:45:10 -05:00

100 lines
2.2 KiB
TOML

[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/__about__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"lib/",
]
[tool.hatch.envs.default]
installer = "uv"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "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 to 3.9, so we override
# the test dependencies for those Python versions here
[tool.hatch.envs.hatch-test.overrides]
name."^py(py)?3\\.(7|8|9)$".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",
"types-PyYAML>=6.0.1,<7",
]
[tool.hatch.envs.types.scripts]
check = "mypy {args:src tests .ci}"
[tool.hatch.envs.coverage]
detached = true
installer = "uv"
dependencies = [
"coverage[toml]",
]
[tool.hatch.envs.coverage.scripts]
html = "coverage html"
xml = "coverage xml"
[tool.mypy]
strict = true
[tool.ruff]
extend-exclude = [
"lib/*.py"
]
lint.ignore = [
"FA100",
]