generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 961 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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