chore: front-end
TS Lint / ESLint (push) Successful in 43s
Python Lint CI / ruff-format-check (push) Successful in 53s
Python Lint CI / ruff (push) Successful in 59s
Python Lint CI / ty (push) Successful in 59s
TS Lint / Oxlint (push) Successful in 1m57s
TS Lint / TypeScript (push) Successful in 2m17s
TS Lint / ESLint (push) Successful in 43s
Python Lint CI / ruff-format-check (push) Successful in 53s
Python Lint CI / ruff (push) Successful in 59s
Python Lint CI / ty (push) Successful in 59s
TS Lint / Oxlint (push) Successful in 1m57s
TS Lint / TypeScript (push) Successful in 2m17s
This commit is contained in:
@@ -7,12 +7,17 @@ ifeq (,$(shell which uv))
|
||||
UV ?= python3 -m uv
|
||||
endif
|
||||
|
||||
ifeq (,$(shell which bun))
|
||||
NPM ?= npm
|
||||
endif
|
||||
|
||||
UV ?= uv
|
||||
RUFF ?= $(UV) run --active ruff
|
||||
TY ?= $(UV) run --active ty
|
||||
UNITTEST ?= $(UV) run --active -m unittest
|
||||
COVERAGE ?= $(UV) run --active coverage
|
||||
OPEN ?= xdg-open
|
||||
NPM ?= bun
|
||||
|
||||
# DOCS
|
||||
|
||||
@@ -33,51 +38,69 @@ print-%:
|
||||
# FILES
|
||||
|
||||
.venv: uv.lock
|
||||
@$(MAKE) -s uv-sync
|
||||
$(MAKE) -s uv-sync
|
||||
|
||||
node_modules: bun.lock
|
||||
$(MAKE) -s npm-install
|
||||
|
||||
# ACTIONS
|
||||
|
||||
.PHONY: install
|
||||
install: uv-sync ## install project
|
||||
install: uv-sync npm-install ## install project
|
||||
|
||||
.PHONY: update
|
||||
update: uv-upgrade ## update project dependencies
|
||||
update: uv-upgrade npm-update ## update project dependencies
|
||||
|
||||
.PHONY: build
|
||||
build: npm-run-build ## build static site in "dist"
|
||||
|
||||
.PHONY: format
|
||||
format: ruff-fix ruff-format ## format project
|
||||
format: ruff-fix ruff-format npm-run-lint-fix ## format project
|
||||
|
||||
.PHONY: lint
|
||||
lint: ruff ruff-format-check ty ## lint project
|
||||
lint: ruff ruff-format-check ty npm-run-lint npm-run-type-check ## lint project
|
||||
|
||||
# TOOLS
|
||||
|
||||
.PHONY: uv-sync
|
||||
uv-sync: ## uv sync
|
||||
@$(UV) sync --active
|
||||
$(UV) sync --active
|
||||
|
||||
.PHONY: uv-update
|
||||
uv-upgrade: ## uv sync upgrade
|
||||
@$(UV) sync --active --upgrade
|
||||
$(UV) sync --active --upgrade
|
||||
|
||||
.PHONY: ruff
|
||||
ruff: .venv ## ruff check
|
||||
@$(RUFF) check
|
||||
$(RUFF) check
|
||||
|
||||
.PHONY: ruff-fix
|
||||
ruff-fix: .venv ## ruff check (and fix)
|
||||
@$(RUFF) check --fix --unsafe-fixes
|
||||
$(RUFF) check --fix --unsafe-fixes
|
||||
|
||||
.PHONY: ruff-format
|
||||
ruff-format: .venv ## ruff format
|
||||
@$(RUFF) format
|
||||
$(RUFF) format
|
||||
|
||||
.PHONY: ruff-format-check
|
||||
ruff-format-check: .venv ## ruff format (check only)
|
||||
@$(RUFF) format --check
|
||||
$(RUFF) format --check
|
||||
|
||||
.PHONY: ty
|
||||
ty: .venv ## ty check
|
||||
@$(TY) check
|
||||
$(TY) check
|
||||
|
||||
.PHONY: npm-install
|
||||
npm-install: ## npm install
|
||||
$(NPM) install
|
||||
|
||||
.PHONY: npm-update
|
||||
npm-update: ## npm update
|
||||
$(NPM) update
|
||||
|
||||
.PHONY: npm-run-%
|
||||
npm-run-%: node_modules ## npm run (script)
|
||||
$(NPM) run $*
|
||||
|
||||
.PHONY: release-%
|
||||
release-%: .venv ## release major/minor/patch
|
||||
|
||||
Reference in New Issue
Block a user