init(tests): added Justfile
This commit is contained in:
Executable
+40
@@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env just --justfile
|
||||
|
||||
[group('help')]
|
||||
[private]
|
||||
default:
|
||||
@ just --list --list-heading $'justfile manual page:\n'
|
||||
|
||||
# show help
|
||||
[group('help')]
|
||||
help: default
|
||||
|
||||
style:
|
||||
just format
|
||||
just lint
|
||||
just mypy
|
||||
|
||||
check:
|
||||
just style
|
||||
|
||||
# lints codebase using golangci-lint
|
||||
[group('lint')]
|
||||
lint:
|
||||
@ uv run ruff check .
|
||||
|
||||
# lints and fixes codebase using ruff
|
||||
[group('lint')]
|
||||
fix:
|
||||
@ uv run ruff check . --fix
|
||||
|
||||
# formats codebase using ruff
|
||||
[group('lint')]
|
||||
format:
|
||||
@ uv run ruff format .
|
||||
|
||||
alias fmt := format
|
||||
|
||||
# lints codebase using mypy
|
||||
[group('lint')]
|
||||
mypy:
|
||||
@ uv run mypy .
|
||||
Reference in New Issue
Block a user