2023-05-29 18:35:38 +00:00
|
|
|
# Formats the code
|
|
|
|
format:
|
2023-05-31 15:32:42 +00:00
|
|
|
autoflake --exclude venv -ri . && black . && isort -r .
|
2023-05-29 18:35:38 +00:00
|
|
|
# Run tests
|
|
|
|
test:
|
2023-06-03 13:08:28 +00:00
|
|
|
pytest .
|
|
|
|
# Build package
|
|
|
|
build:
|
|
|
|
python -m build
|
|
|
|
# Upload package to PyPI
|
|
|
|
upload:
|
2023-06-03 13:24:06 +00:00
|
|
|
hatch publish
|
|
|
|
release:
|
2023-06-04 16:27:29 +00:00
|
|
|
hatch clean && hatch build && hatch publish
|
|
|
|
# Build the tox docker image, use docker run -v "$(pwd)":"/code" jekyll-to-hugo-tox -e ci to run tox
|
|
|
|
build-tox:
|
|
|
|
docker build . -f ./docker/Tox.Dockerfile -t jekyll-to-hugo-tox
|