-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
66 lines (51 loc) · 1.27 KB
/
justfile
File metadata and controls
66 lines (51 loc) · 1.27 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Faker Crypto development tasks
# Install 'just' from https://github.com/casey/just
# List all available recipes
default:
@just --list
# Install development dependencies using uv
install:
uv sync --frozen --group dev
# Install only the package without dev dependencies
install-prod:
uv sync --frozen --no-dev
# Create/update uv.lock file from pyproject.toml
lock:
uv lock
# Run tests
test:
uv run pytest
# Run tests with coverage
test-cov:
uv run pytest --cov=faker_crypto --cov-report=term-missing
# Update dependencies using uv and regenerate lock file
update:
uv lock --upgrade
# Run code quality tools
lint:
uv run ruff format --check src tests
uv run ruff check src tests
# Format code with ruff
format:
uv run ruff format src tests
uv run ruff check --fix src tests
# Build the package
build:
uv build
# Clean build artifacts
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
# Run all quality checks
check: lint test
# Set up pre-commit hooks
precommit-setup:
uv run pre-commit install
# Update pre-commit hooks
precommit-update:
uv run pre-commit autoupdate
# Run all pre-commit hooks on all files
precommit-run:
uv run pre-commit run --all-files