Skip to content

Commit

Permalink
Switch to just from make
Browse files Browse the repository at this point in the history
  • Loading branch information
sffjunkie committed Mar 14, 2024
1 parent d6bfc00 commit c30f59d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 48 deletions.
37 changes: 37 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
home_dir := env_var('HOME')
dev_home := env_var_or_default("DEVELOPMENT_HOME", "{{home_dir}}/development")
build_dir := dev_home + '/build/astral'
pypm := 'pdm'

test:
{{pypm}} run tox

test-docs:
{{pypm}} run tox -e doc

test-types:
{{pypm}} run mypy ./src/astral

export COVERAGE_FILE := build_dir + '/coverage'
test-coverage:
{{pypm}} run pytest --cov=src/astral src/test

test-coverage-html:
{{pypm}} run coverage html -d "{{build_dir}}/htmlcov/"
@xdg-open "{{build_dir}}/htmlcov/index.html" 2>&1 >/dev/null

test-coverage-term:
{{pypm}} run coverage report
@xdg-open "{{build_dir}}/htmlcov/index.html" 2>&1 >/dev/null

build-docs:
{{pypm}} run sphinx-build -a -b html -d {{build_dir}}/doctrees ./src/docs ../gh-pages

view-docs:
@xdg-open ../gh-pages/index.html 2>&1 >/dev/null

publish-docs:
git subtree push --prefix docs origin gh-pages

repl:
@{{pypm}} run python
48 changes: 0 additions & 48 deletions Makefile

This file was deleted.

0 comments on commit c30f59d

Please sign in to comment.