66develop : # # install dependencies and build library
77 uv pip install -e .[develop]
88
9+ requirements : # # install prerequisite python build requirements
10+ python -m pip install --upgrade pip toml
11+ python -m pip install ` python -c ' import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' `
12+ python -m pip install ` python -c ' import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))' `
13+
914build : # # build the python library
1015 python -m build -n
1116
@@ -15,20 +20,27 @@ install: ## install library
1520# ########
1621# LINTS #
1722# ########
18- .PHONY : lint lints fix format
23+ .PHONY : lint-py lint-docs fix-py fix-docs lint lints fix format
1924
20- lint : # # run python linter with ruff
25+ lint-py : # # lint python with ruff
2126 python -m ruff check hatch_javascript
2227 python -m ruff format --check hatch_javascript
2328
24- # Alias
25- lints : lint
29+ lint-docs : # # lint docs with mdformat and codespell
30+ python -m mdformat --check README.md
31+ python -m codespell_lib README.md
2632
27- fix : # # fix python formatting with ruff
33+ fix-py : # # autoformat python code with ruff
2834 python -m ruff check --fix hatch_javascript
2935 python -m ruff format hatch_javascript
3036
31- # alias
37+ fix-docs : # # autoformat docs with mdformat and codespell
38+ python -m mdformat README.md
39+ python -m codespell_lib --write README.md
40+
41+ lint : lint-py lint-docs # # run all linters
42+ lints : lint
43+ fix : fix-py fix-docs # # run all autoformatters
3244format : fix
3345
3446# ###############
@@ -88,7 +100,7 @@ dist-check: ## run python dist checker with twine
88100
89101dist : clean dist-build dist-check # # build all dists
90102
91- publish : dist # publish python assets
103+ publish : dist # # publish python assets
92104
93105# ########
94106# CLEAN #
0 commit comments