-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from AlessandroMiola/add_justfile
feat: add justfile
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Use PowerShell instead of sh | ||
set shell := ["powershell.exe", "-c"] | ||
|
||
help: | ||
@just --list | ||
|
||
install: | ||
@echo "π Installing dependencies" | ||
@poetry install --with dev | ||
|
||
check-project: | ||
@echo "π Checking consistency between poetry.lock and pyproject.toml" | ||
@poetry check --lock | ||
|
||
ruff: | ||
@echo "π Linting the project with Ruff" | ||
@poetry run ruff check . | ||
|
||
ruff-show-violations: | ||
@echo "π Linting the project with Ruff and show violations" | ||
@poetry run ruff check --output-format="grouped" . | ||
|
||
ruff-fix: | ||
@echo "π Linting the project with Ruff and autofix violations (where possible)" | ||
@poetry run ruff check --fix . | ||
|
||
black: | ||
@echo "π Formatting the code with Black" | ||
@poetry run black . | ||
|
||
black-check: | ||
@echo "π Listing files Black would reformat" | ||
@poetry run black --check . | ||
|
||
black-diff: | ||
@echo "π Checking formatting advices from Black" | ||
@poetry run black --diff . | ||
|
||
lint-and-format: ruff-fix black |