Changed:
- The
hatch fmtcommand is now deprecated in favor of the newhatch checkcommand group - Migrate HTTP client from
httpxtohttpx2
Added:
- Add
hatch checkcommand group with subcommands forcheck code(linting),check fmt(formatting), andcheck types(type checking) - Add
hatch check typescommand for type checking using Pyrefly, with--summarizeand--coverflags - Add
hatch env lockcommand to generate PEP 751 compliant lockfiles (pylock.toml) for environments - Add
hatch dep lockandhatch lockcommands as shortcuts for locking the active environment - Add
hatch dep synccommand for syncing dependencies from a lockfile - Add pluggable dependency locker interface with built-in UV and pip implementations
- Add
--cover-xmland--cover-xml-outputflags to thehatch testcommand for generating XML coverage reports - Add linehaul telemetry data to User-Agent header for PyPI download statistics
- Auto-create environment when locking if it doesn't exist
Fixed:
- Fix help output formatting for the
runcommand