forked from sublimelsp/LSP-ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 807 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
MAKEFLAGS += --silent
UV_INSTALL_FLAGS :=
.PHONY: all
all:
.PHONY: install
install:
uv pip install $(UV_INSTALL_FLAGS) -r requirements-prod.txt
.PHONY: install-dev
install-dev:
uv pip install $(UV_INSTALL_FLAGS) -r requirements-dev.txt
.PHONY: pip-compile
pip-compile:
uv pip compile --upgrade requirements-prod.in -o requirements-prod.txt
uv pip compile --upgrade requirements-dev.in -o requirements-dev.txt
.PHONY: ci-check
ci-check:
@echo "========== check: mypy =========="
mypy -p plugin
@echo "========== check: ruff (lint) =========="
ruff check --diff .
@echo "========== check: ruff (format) =========="
ruff format --diff .
.PHONY: ci-fix
ci-fix:
@echo "========== fix: ruff (lint) =========="
ruff check --fix .
@echo "========== fix: ruff (format) =========="
ruff format .