forked from asteroid-team/asteroid
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 733 Bytes
/
Copy pathlint.yml
File metadata and controls
29 lines (25 loc) · 733 Bytes
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
name: Automatic lint
on:
issue_comment:
types: [created]
jobs:
build:
name: Lint code base
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/lint')
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: 3.13
- uses: actions/checkout@v5
- run: git pull
- run: pip install black==25.9.0 flake8
- run: python -m black --config=pyproject.toml asteroid tests egs
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "[Bot] Lint PR"
add: "*.py"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}