summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-22 13:26:54 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-03-22 13:30:41 +0100
commitdea176b5660bba7bf13940f3c02f84aa5ea0da16 (patch)
treeb083d000c9877b43ab82f079ea56c80ae673faac
parentf7acc7f53a54f5b5f267b6770e0e24ed444ebc7a (diff)
Makefile: Split ruff into wrappers/python dir
-rw-r--r--Makefile3
-rw-r--r--wrappers/python/Makefile9
2 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9ae2c2e..d6cae4e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,9 @@ build:
fmt:
gofumpt -w .
- ruff format wrappers/python/eduvpn_common
lint:
golangci-lint run -E stylecheck,revive,gocritic ./...
- ruff check wrappers/python/eduvpn_common
- ruff format --check wrappers/python/eduvpn_common
cli:
go build -o eduvpn-common-cli ./cmd/cli
diff --git a/wrappers/python/Makefile b/wrappers/python/Makefile
index 9d51c15..c55faf8 100644
--- a/wrappers/python/Makefile
+++ b/wrappers/python/Makefile
@@ -1,5 +1,5 @@
.DEFAULT_GOAL := pack
-.PHONY: install-lib pack test clean
+.PHONY: install-lib pack test clean lint fmt
VERSION := $(shell grep -o 'const Version = "[^"]*' ../../internal/version/version.go | cut -d '"' -f 2)
@@ -16,3 +16,10 @@ test: install-lib
clean:
rm -rf build/ dist/ *.egg-info/ eduvpn_common/lib/* venv
+
+lint:
+ ruff check eduvpn_common
+ ruff format --check eduvpn_common
+
+fmt:
+ ruff format eduvpn_common