File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Othewrwise, Black is run and its changes are committed back to the incoming pull request.
44# https://github.com/cclauss/autoblack
55
6- name : autoblack
6+ name : fmt
77on :
88 push :
99 branches : ["develop"]
1010jobs :
1111 build :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v1
15- - name : Set up Python 3.7
16- uses : actions/setup-python@v1
14+ - uses : actions/checkout@v4
15+ - name : Set up Python 3.10
16+ uses : actions/setup-python@v5
1717 with :
18- python-version : 3.9
18+ python-version : 3.10
1919 - name : Install Black
2020 run : pip install black
2121 - name : Run black --check .
3030 git checkout $GITHUB_HEAD_REF
3131 git commit -am "fixup: Format Python code with Black"
3232 git push origin HEAD:develop
33+
34+ - uses : isort/isort-action@v1
35+ with :
36+ requirement-files : " requirements.txt"
37+
38+
39+
Original file line number Diff line number Diff line change 3939
4040 steps :
4141 - name : Checkout repository
42- uses : actions/checkout@v3
42+ uses : actions/checkout@v4
4343
4444 # Initializes the CodeQL tools for scanning.
4545 - name : Initialize CodeQL
Original file line number Diff line number Diff line change 66 lint :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v2
9+ - uses : actions/checkout@v4
1010 - uses : psf/black@stable
1111 with :
1212 options : " --line-length 101"
13+ - uses : isort/isort-action@v1
14+ with :
15+ requirement-files : " requirements.txt"
You can’t perform that action at this time.
0 commit comments