Backport to 1.20.4 #166
Workflow file for this run
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
# Check that code complies with style conventions. Currently only for the python | |
# bits, but it would be great if we could get the Java parts in too. Would also | |
# be awesome if the linter could not only *check* for issues but automatically correct | |
# them. | |
name: lint | |
on: # so lightweight I have zero qualms about doing it on all branches | |
push: | |
jobs: | |
lint-python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install package and dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
pip install mypy black isort pyyaml types-PyYAML | |
- name: Run code quality checks | |
run: | | |
isort . --profile="black" | |
black foxnap_rpg | |
# - name: Type check with mypy | |
# run: | | |
# mypy foxnap_rpg --exclude build |