File tree Expand file tree Collapse file tree 2 files changed +10
-30
lines changed Expand file tree Collapse file tree 2 files changed +10
-30
lines changed Original file line number Diff line number Diff line change 37
37
run : pip install mesa pytest
38
38
- name : Test with pytest
39
39
run : pytest test_examples.py
40
-
41
- lint-ruff :
42
- runs-on : ubuntu-latest
43
- steps :
44
- - uses : actions/checkout@v3
45
- - name : Set up Python 3.10
46
- uses : actions/setup-python@v4
47
- with :
48
- python-version : " 3.10"
49
- - run : pip install ruff==0.0.275
50
- - name : Lint with ruff
51
- # Include `--format=github` to enable automatic inline annotations.
52
- # Use settings from pyproject.toml.
53
- run : ruff . --format=github
54
-
55
- lint-black :
56
- runs-on : ubuntu-latest
57
- steps :
58
- - uses : actions/checkout@v3
59
- - name : Set up Python 3.10
60
- uses : actions/setup-python@v4
61
- with :
62
- python-version : " 3.10"
63
- - run : pip install black[jupyter]
64
- - name : Lint with black
65
- run : black --check .
Original file line number Diff line number Diff line change 3
3
autofix_prs : false
4
4
5
5
repos :
6
- - repo : https://github.com/psf/black
7
- rev : 23.12.1
8
- hooks :
9
- - id : black-jupyter
6
+ - repo : https://github.com/astral-sh/ruff-pre-commit
7
+ # Ruff version.
8
+ rev : v0.1.6
9
+ hooks :
10
+ # Run the linter.
11
+ - id : ruff
12
+ types_or : [ python, pyi, jupyter ]
13
+ # Run the formatter.
14
+ - id : ruff-format
15
+ types_or : [ python, pyi, jupyter ]
10
16
- repo : https://github.com/asottile/pyupgrade
11
17
rev : v3.15.0
12
18
hooks :
You can’t perform that action at this time.
0 commit comments