File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [ 'push', 'pull_request' ]
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-latest
8+ name : lint
9+ strategy :
10+ matrix :
11+ python-version : [ '3.10', '3.11' ]
12+ fail-fast : false
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v4
18+ with :
19+ python-version : ${{ matrix.python-version }}
20+
21+ - name : Install Dependencies
22+ run : pip install ruff==0.0.262 pre-commit==3.2.2
23+
24+ - name : ruff check
25+ uses : chartboost/ruff-action@v1
26+ with :
27+ args : [ '--config', '.ruff.toml' ]
28+
29+ - name : black formatter
30+ uses : psf/black@stable
31+ with :
32+ options : ' --skip-string-normalization --line-length 120'
33+
34+ - name : pre-commit
35+ uses : pre-commit/action@v3.0.0
36+ with :
37+ extra_args : --all-files --verbose
Original file line number Diff line number Diff line change 2323 - ' --skip-string-normalization'
2424 - ' --line-length'
2525 - ' 120'
26- - ' --target-version'
27- - ' py310'
You can’t perform that action at this time.
0 commit comments