view pyproject.toml @ 4:5ad58438318a

Fix issue where sometimes reads would be cut off. Also format and fix other stuff.
author Paul Fisher <paul@pfish.zone>
date Sat, 14 Feb 2026 21:20:36 -0500
parents 871dcb2a2aeb
children 4f42fdbb25f2
line wrap: on
line source

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "git-serve"
dynamic = ["version"]
description = 'Serves Git repositories from Mercurial.'
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
  { name = "Paul Fisher", email = "paul@pfish.zone" },
]
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 = [
  'dulwich',
  'mercurial',
  'hg-git',
]

[tool.hatch.version]
path = "src/git_serve/__init__.py"

[tool.hatch.envs.types]
extra-dependencies = [
  "mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/git_serve tests}"

[tool.coverage.run]
source_pkgs = ["git_serve", "tests"]
branch = true
parallel = true

[tool.coverage.paths]
git_serve = ["src/git_serve", "*/git-serve/src/git_serve"]
tests = ["tests", "*/git-serve/tests"]

[tool.coverage.report]
exclude_lines = [
  "no cov",
  "if __name__ == .__main__.:",
  "if TYPE_CHECKING:",
]

[[tool.mypy.overrides]]
module = ['mercurial.*', 'hggit.*']
follow_untyped_imports = true

[tool.ruff]
line-length = 80

[tool.ruff.lint]
select = ['E', 'F', 'UP', 'B', 'SIM', 'I']
isort.force-single-line = true

[tool.ruff.format]
quote-style = 'single'