mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-02 14:26:33 +00:00
* feat: add `isort` to `pre-commit` * ci: skip `__init__.py` file for `isort` * ci: make `isort` mandatory in lint pipeline * docs: add a section on Git hooks * ci: check isort diff * fix: isort from master branch * docs: add pre-commit badge * ci: update black + bandit versions * feat: add PR template * refactor: PR template * ci: remove bandit * docs: add Black badge * ci: try to remove all `|| true` statements * ci: remove lint_python job - Remove `lint_python` CI job - Move `pyupgrade` job to `pre-commit` workflow * fix: avoid messing with typing * docs: add a note on running `pre-cpmmit` manually * ci: apply `pre-commit` to the whole codebase
25 lines
777 B
YAML
25 lines
777 B
YAML
---
|
|
name: lint_python
|
|
on: [pull_request, push]
|
|
jobs:
|
|
pyright:
|
|
name: Check types with pyright
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-platform: ["Linux"]
|
|
python-version: ["3.7"]
|
|
fail-fast: false
|
|
env:
|
|
PYRIGHT_VERSION: 1.1.204
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
- run: pip install -e .[nomujoco]
|
|
- uses: jakebailey/pyright-action@v1
|
|
with:
|
|
version: ${{ env.PYRIGHT_VERSION }}
|
|
python-platform: ${{ matrix.python-platform }}
|
|
python-version: ${{ matrix.python-version }}
|
|
no-comments: ${{ matrix.python-version != '3.9' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
|