No description
  • Python 99.8%
  • Starlark 0.1%
Find a file
Benedikt Ziegler 5cfbb54005
fix: skip extend injection if already present in ruff config (#2305)
* fix: skip extend injection if already present in ruff config

When a project's ruff.toml or pyproject.toml [tool.ruff] section already
contains an extend key, hatch was unconditionally prepending/inserting
another one into the internal config copy, producing a duplicate key and
a TOML parse error on hatch check code/fmt.

Guard both the ruff.toml and pyproject.toml paths to only inject extend
when it is not already present.

* test: fix env_run fixture via marker

Remove mocker usage.

* test: add appropriate tests for all check cli pathes

Remove not required tests in test_fmt module
2026-06-11 07:49:37 -07:00
.github Fix draft release uploads. (#2293) 2026-05-31 18:27:35 -07:00
backend release Hatchling v1.30.1 (#2298) 2026-06-01 16:42:00 -07:00
docs Docs: Add hatch-calver to version scheme plugins (#1725) 2026-06-08 20:45:02 -07:00
release release Hatch v1.16.2 (#2132) 2025-12-06 13:55:09 -05:00
scripts release Hatchling v1.30.0 (#2289) 2026-05-31 16:12:05 -07:00
src/hatch fix: skip extend injection if already present in ruff config (#2305) 2026-06-11 07:49:37 -07:00
tests fix: skip extend injection if already present in ruff config (#2305) 2026-06-11 07:49:37 -07:00
.gitattributes rewrite 2021-12-29 15:42:36 -05:00
.gitignore Update docs dependencies (#1101) 2023-12-09 18:26:32 -05:00
.linkcheckerrc Add blog post for v1.9.0 (#1163) 2023-12-18 22:13:29 -05:00
hatch.toml Feat hatch check command with new sub command for types (#2278) 2026-05-30 17:29:34 -07:00
LICENSE.txt update licenses 2022-02-04 20:33:48 -05:00
mkdocs.yml Update docs as pre-release for 1.17.0 (#2287) 2026-05-31 14:06:30 -07:00
pyoxidizer.bzl Make release artifacts have the expected naming (#1481) 2024-05-11 18:05:11 -04:00
pyproject.toml Migrate to httpx2 (#2285) 2026-05-30 17:17:43 -07:00
pyrefly.toml Feat hatch check command with new sub command for types (#2278) 2026-05-30 17:29:34 -07:00
README.md Create a custom badge (#2087) 2025-10-17 00:17:13 -04:00
ruff.toml Upgrade Ruff to 0.13.2 (#1890) 2025-09-28 14:20:22 -04:00
ruff_defaults.toml Upgrade Ruff to 0.13.2 (#1890) 2025-09-28 14:20:22 -04:00
SECURITY.md Revise security policy and reporting guidelines (#2273) 2026-05-18 15:37:18 -07:00

Hatch

Hatch logo
CI/CD CI - Test CD - Build Hatch CD - Build Hatchling
Docs Docs - Release Docs - Dev
Package PyPI - Version PyPI - Python Version PyPI - Installs Release - Downloads
Meta Hatch project linting - Ruff types - Mypy License - MIT GitHub Sponsors

Hatch is a modern, extensible Python project manager.

Features

See the Why Hatch? page for more information.

Documentation

The documentation is made with Material for MkDocs and is hosted by GitHub Pages.

License

Hatch is distributed under the terms of the MIT license.