From dea176b5660bba7bf13940f3c02f84aa5ea0da16 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 22 Mar 2024 13:26:54 +0100 Subject: Makefile: Split ruff into wrappers/python dir --- Makefile | 3 --- wrappers/python/Makefile | 9 ++++++++- 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 -- cgit v1.2.3