Skip to content

Commit 7ab466c

Browse files
committed
chore(taskfile): expand clean task to remove additional build artifacts
1 parent cfa5ed7 commit 7ab466c

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

Taskfile

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ function task:dev_install {
3030
}
3131

3232
function task:clean {
33-
rm -rf dist build *.egg-info node_modules
33+
rm -rf dist build *.egg-info node_modules \
34+
.venv htmlcov .uv-cache .ruff_cache .mypy_cache \
35+
.pytest_cache .direnv
3436
find . -type d -name __pycache__ -exec rm -rf {} +
3537
find . -type f -name "*.pyc" -delete
3638
rm -f .coverage coverage.xml pnpm-lock.yaml
@@ -58,37 +60,37 @@ function task:fix {
5860
}
5961

6062
function task:test {
61-
echo "Running all tests with coverage..."
62-
if [[ ! -d tests ]]; then
63-
echo "Error: tests/ directory not found. Create tests/ directory and add test files."
64-
exit 1
65-
fi
66-
${PYTEST} -v --cov=ccproxy --cov-report=term "$@"
63+
echo "Running all tests with coverage..."
64+
if [[ ! -d tests ]]; then
65+
echo "Error: tests/ directory not found. Create tests/ directory and add test files."
66+
exit 1
67+
fi
68+
${PYTEST} -v --cov=ccproxy --cov-report=term "$@"
6769
}
6870

6971
function task:test_unit {
70-
echo "Running fast unit tests (excluding real API calls and integration tests)..."
71-
${PYTEST} -v -m "not integration" --tb=short "$@"
72+
echo "Running fast unit tests (excluding real API calls and integration tests)..."
73+
${PYTEST} -v -m "not integration" --tb=short "$@"
7274
}
7375

7476
function task:test_integration {
75-
echo "Running integration tests across all plugins..."
76-
local target="tests/"
77-
if [[ $# -gt 0 && "$1" != -* ]]; then
78-
target="$1"
79-
shift
80-
fi
81-
${PYTEST} -v -m "integration and not slow and not real_api" --tb=short -n auto "${target}" "$@"
77+
echo "Running integration tests across all plugins..."
78+
local target="tests/"
79+
if [[ $# -gt 0 && "$1" != -* ]]; then
80+
target="$1"
81+
shift
82+
fi
83+
${PYTEST} -v -m "integration and not slow and not real_api" --tb=short -n auto "${target}" "$@"
8284
}
8385

8486
function task:test_plugins {
85-
echo "Running plugin tests under tests/plugins..."
86-
local target="tests/plugins"
87-
if [[ $# -gt 0 && "$1" != -* ]]; then
88-
target="$1"
89-
shift
90-
fi
91-
${PYTEST} -v --tb=short --no-cov "${target}" "$@"
87+
echo "Running plugin tests under tests/plugins..."
88+
local target="tests/plugins"
89+
if [[ $# -gt 0 && "$1" != -* ]]; then
90+
target="$1"
91+
shift
92+
fi
93+
${PYTEST} -v --tb=short --no-cov "${target}" "$@"
9294
}
9395

9496
function task:test_file {
@@ -139,9 +141,9 @@ function task:check {
139141
}
140142

141143
function task:test_coverage {
142-
task:check
143-
echo "Running tests with detailed coverage report..."
144-
${PYTEST} -v --cov=ccproxy --cov-report=term-missing --cov-report=html -m "not slow and not real_api" "$@"
144+
task:check
145+
echo "Running tests with detailed coverage report..."
146+
${PYTEST} -v --cov=ccproxy --cov-report=term-missing --cov-report=html -m "not slow and not real_api" "$@"
145147
echo "HTML coverage report generated in htmlcov/"
146148
}
147149

0 commit comments

Comments
 (0)