| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# script/lint: Run linting tools and apply formatting |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
cd "$(dirname "$0")/.." |
| 8 |
|
| 9 |
echo "==> Running linting tools..." |
| 10 |
|
| 11 |
echo "==> Running isort..." |
| 12 |
uv run --dev isort awesomeversion tests benchmarks |
| 13 |
|
| 14 |
echo "==> Running black..." |
| 15 |
uv run --dev black --fast awesomeversion tests benchmarks |
| 16 |
|
| 17 |
echo "==> Running mypy..." |
| 18 |
uv run --dev mypy --strict awesomeversion tests benchmarks |
| 19 |
|
| 20 |
echo "==> Running pylint..." |
| 21 |
uv run --dev pylint awesomeversion tests benchmarks |
| 22 |
|
| 23 |
echo "==> Linting completed!" |