-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (28 loc) · 760 Bytes
/
justfile
File metadata and controls
33 lines (28 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set shell := ["powershell.exe", "-c"]
# Show help message
PHONY: help
help:
@echo "🌟 Welcome to the Awesome Justfile! 🌟"
@echo ""
@echo "Available targets:"
@echo " - ruff : Run ruff check without fix 🐶"
@echo " - mypy : Run mypy 🧐"
@echo " - isort : Run isort 🔄"
@echo " - audit : Audit packages 🔍"
@echo " - help : Show this help message ℹ️"
# Run ruff without fix
ruff:
@echo "🐶 Running ruff check..."
@ruff check $(git ls-files '*.py')
# Run mypy
mypy:
@echo "🧐 Running mypy..."
@poetry run mypy $(git ls-files '*.py')
# Run isort
isort:
@echo "🔄 Running isort..."
@poetry run isort $(git ls-files '*.py')
# Audit packages
audit:
@echo "🔍 Auditing packages..."
@pip-audit .