refactor: improve readability, error handling, and performance in Dat… #1996
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: Run pre-commit hooks | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Elementary | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4.3.0 | |
with: | |
python-version: "3.8" | |
# mainly needed so mypy will have the dependencies it needs | |
- name: Install elementary | |
run: pip install -e . | |
- name: Install dev requirements | |
run: pip install -r dev-requirements.txt | |
- name: Run pre-commit hooks | |
run: pre-commit run --all-files --show-diff-on-failure |