-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1.2 KB
/
Makefile
File metadata and controls
44 lines (36 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# NOTE: Used on linux, limited support outside of Linux
#
# A simple makefile to help with small tasks related to development of Mighty
# These have been configured to only really run short tasks. Longer form tasks
# are usually completed in github actions.
.PHONY: help install check format
help:
@echo "Makefile Mighty Project"
@echo "* install to install all dev requirements and install pre-commit"
@echo "* check to check the source code for issues"
@echo "* format to format the code with ruff"
PYTHON ?= python
CYTHON ?= cython
PYTEST ?= uv run pytest
CTAGS ?= ctags
PIP ?= uv --cache-dir .uv_cache pip
MAKE ?= make
PRECOMMIT ?= uv run pre-commit
RUFF ?= uv run ruff
MYPY ?= uv run mypy
ISORT ?= uv run isort
DIR := ${CURDIR}
DIST := ${CURDIR}/dist
DOCDIR := ${CURDIR}/docs
INDEX_HTML := file://${DOCDIR}/html/build/index.html
install:
$(PIP) install -e "."
# pydocstyle does not have easy ignore rules, instead, we include as they are covered
check:
ruff format --check mighty_dacs
ruff check mighty_dacs
format:
$(ISORT) isort mighty_dacs
$(RUFF) format --silent mighty_dacs
$(RUFF) check --fix --silent mighty_dacs --exit-zero
$(RUFF) check --fix mighty_dacs --exit-zero