Improve pre-commit workflow (#2602)

* 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
This commit is contained in:
Andrea PIERRÉ
2022-03-31 12:50:38 -07:00
committed by GitHub
parent d6a3431c60
commit e913bc81b8
112 changed files with 362 additions and 326 deletions

View File

@@ -1,10 +1,9 @@
import pytest
import numpy as np
import pytest
from gym.spaces import Box, Tuple, Discrete, MultiDiscrete
from tests.vector.utils import CustomSpace, make_env, make_custom_space_env
from gym.spaces import Box, Discrete, MultiDiscrete, Tuple
from gym.vector.sync_vector_env import SyncVectorEnv
from tests.vector.utils import CustomSpace, make_custom_space_env, make_env
def test_create_sync_vector_env():