Skip to content

Instantly share code, notes, and snippets.

@MtkN1
Created May 10, 2024 08:54
Show Gist options
  • Save MtkN1/45a294e8644837d3ae44343dd5e77b17 to your computer and use it in GitHub Desktop.
Save MtkN1/45a294e8644837d3ae44343dd5e77b17 to your computer and use it in GitHub Desktop.
pyproject.toml differences between Hatch v1.9 and v1.10
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hatch-demo"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "MtkN1", email = "51289448+MtkN1@users.noreply.github.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []
[project.urls]
Documentation = "https://github.com/MtkN1/hatch-demo#readme"
Issues = "https://github.com/MtkN1/hatch-demo/issues"
Source = "https://github.com/MtkN1/hatch-demo"
[tool.hatch.version]
path = "src/hatch_demo/__about__.py"
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/hatch_demo tests}"
[tool.coverage.run]
source_pkgs = ["hatch_demo", "tests"]
branch = true
parallel = true
omit = [
"src/hatch_demo/__about__.py",
]
[tool.coverage.paths]
hatch_demo = ["src/hatch_demo", "*/hatch-demo/src/hatch_demo"]
tests = ["tests", "*/hatch-demo/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
@MtkN1
Copy link
Author

MtkN1 commented May 10, 2024

See Revisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment