-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMakefile
41 lines (33 loc) · 864 Bytes
/
Makefile
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
# Code checker/formatter
#
# Pre-requisites
#
# isort
# mypy
# ruff
# uv
src-dir = oqs
tests-dir = tests
examples-dir = examples
.PHONY lint:
lint:
echo "Running ruff..."
uv run ruff check --config pyproject.toml --diff $(src-dir) $(tests-dir) $(examples-dir)
.PHONY format:
format:
echo "Running ruff check with --fix..."
uv run ruff check --config pyproject.toml --fix --unsafe-fixes $(src-dir) $(tests-dir) $(examples-dir)
echo "Running ruff..."
uv run ruff format --config pyproject.toml $(src-dir) $(tests-dir) $(examples-dir)
echo "Running isort..."
uv run isort --settings-file pyproject.toml $(src-dir) $(tests-dir) $(examples-dir)
.PHONE mypy:
mypy:
echo "Running MyPy..."
uv run mypy --config-file pyproject.toml $(src-dir)
.PHONY outdated:
outdated:
uv tree --outdated --universal
.PHONY sync:
sync:
uv sync --extra dev --extra lint