NetExec/.github/workflows/lint.yml

17 lines
541 B
YAML
Raw Normal View History

2023-09-22 03:45:41 +00:00
name: Lint Python code with ruff
on: [push, pull_request]
jobs:
lint:
name: Lint Python code with ruff
runs-on: ubuntu-latest
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
2023-09-22 03:47:59 +00:00
- run: python -m ruff --format=github --target-version=py37
2023-09-22 18:12:27 +00:00
--ignore=E501,F405 .
2023-09-22 03:50:21 +00:00
#,E101,E401,E402,E701,E703,E711,E712,E713,E714,E721,E722,E731,E741,F401,F403,F405,F601,F811,F841,F901 .