feat(irrexplorer-cli): init #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test (linter/formatter) | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.13"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade uv | |
uv pip install --system --break-system-packages -r requirements.txt | |
- name: Check YAML files | |
run: | | |
pre-commit run check-yaml --all-files | |
- name: Check file endings | |
run: | | |
pre-commit run end-of-file-fixer --all-files | |
- name: Check trailing whitespace | |
run: | | |
pre-commit run trailing-whitespace --all-files | |
- name: Check TOML files | |
run: | | |
pre-commit run check-toml --all-files | |
- name: Check large files | |
run: | | |
pre-commit run check-added-large-files --all-files | |
- name: Run isort | |
run: | | |
isort --check --diff $(git ls-files '*.py') | |
- name: Run black | |
run: | | |
black --check --diff $(git ls-files '*.py') | |
- name: Run ruff | |
run: | | |
ruff check $(git ls-files '*.py') | |
- name: Run mypy | |
run: | | |
mypy $(git ls-files '*.py') | |
- name: Run pylint | |
run: | | |
pylint --rcfile=pyproject.toml $(git ls-files '*.py') | |