Skip to content

Commit

Permalink
add makefile for local development tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 10, 2023
1 parent 5b1801b commit f51370a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
PROJECT=invert4geom
STYLE_CHECK_FILES=.

create:
mamba create --name $(PROJECT) --yes --force antarctic-plots python=3.11

install:
pip install -e .[test,dev,docs]

remove:
mamba remove --name $(PROJECT) --all

docs:
sphinx-build docs/ docs/build/

test: test_coverage test_numba

test_coverage:
NUMBA_DISABLE_JIT=1 pytest

test_numba:
NUMBA_DISABLE_JIT=0 pytest -rP -m use_numba1

format:
ruff format $(STYLE_CHECK_FILES)

check:
ruff check --fix $(STYLE_CHECK_FILES)

0 comments on commit f51370a

Please sign in to comment.