diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml new file mode 100644 index 0000000..10b66d5 --- /dev/null +++ b/.github/workflows/lint_python.yml @@ -0,0 +1,21 @@ +--- +name: Lintcheck Python +on: + push: + branches: [main] + paths: ['**.py'] + pull_request: + paths: ['**.py'] +jobs: + check_python: + name: Check Python linting + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - uses: actions/checkout@v4 + - run: pip install -q uv && uv pip install --system ruff isort + - run: ruff format --check --diff . + - run: ruff check + - run: isort -c --diff minihack/