c50cfe88d6
upgrade dev dependencies; remove unnecessary main test script entrypoint; remove unnecessary line from `.gitignore`; put repo description variable into top-level `__init__.py`; introduce syntax-error as a reminder to fix copyright; add CSS fix for broken inline-code segments; update `index.md` layout; reorder linting script calls and add a bit more output; support Python 3.8+ by default; fix wrong dependency file reference in `pyproject.toml`; add `pytest` config to `pyproject.toml`; call `pytest` in `coverage` config; add a few sensible rule-ignores to `ruff` config
18 lines
421 B
Bash
Executable File
18 lines
421 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Runs various linters.
|
|
|
|
source "$(dirname $(realpath $0))/util.sh"
|
|
|
|
echo 'Linting source and test files...'
|
|
|
|
echo ' ruff - Doing extensive linting'
|
|
ruff src/ tests/
|
|
|
|
echo ' black - Ensuring consistent code style'
|
|
run_and_capture black src/ tests/ --check
|
|
|
|
echo ' isort - Ensuring consistent import structure'
|
|
isort src/ tests/ --check-only
|
|
|
|
echo -e "${bold_green}No issues found${color_reset}\n"
|