forked from multi-swe-bench/multi-swe-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (43 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
51 lines (43 loc) · 1.53 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
.PHONY: help format check lint fix clean install-dev
# Default target
help:
@echo "Available commands:"
@echo " make install-dev - Install development dependencies"
@echo " make install - Install msb package"
@echo " make format - Format all Python files using ruff"
@echo " make check - Check code formatting without making changes"
@echo " make lint - Run ruff linter to check for code issues"
@echo " make fix - Auto-fix linting issues using ruff"
@echo " make clean - Clean up Python cache files"
# Install development dependencies
install-dev:
@echo "Installing development dependencies..."
pip install -e ".[dev]"
# Install msb package
install:
@echo "Installing multi-swe-bench..."
pip install -e .
# Format all Python files
format:
@echo "Formatting Python files with ruff..."
ruff format .
# Check formatting without making changes
check:
@echo "Checking code formatting..."
ruff format --check .
# Run linter to check for code issues
lint:
@echo "Running ruff linter..."
ruff check .
# Auto-fix linting issues
fix:
@echo "Auto-fixing linting issues with ruff..."
ruff check --fix .
# Clean up Python cache files
clean:
@echo "Cleaning up Python cache files..."
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
find . -type f -name "*.pyo" -delete 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true