mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-22 15:11:51 +00:00
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:
@@ -1,18 +1,13 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import OrderedDict
|
||||
from functools import singledispatch, reduce
|
||||
from typing import TypeVar, Union
|
||||
import numpy as np
|
||||
import operator as op
|
||||
from collections import OrderedDict
|
||||
from functools import reduce, singledispatch
|
||||
from typing import TypeVar, Union
|
||||
|
||||
from gym.spaces import Box
|
||||
from gym.spaces import Discrete
|
||||
from gym.spaces import MultiDiscrete
|
||||
from gym.spaces import MultiBinary
|
||||
from gym.spaces import Tuple
|
||||
from gym.spaces import Dict
|
||||
from gym.spaces import Space
|
||||
import numpy as np
|
||||
|
||||
from gym.spaces import Box, Dict, Discrete, MultiBinary, MultiDiscrete, Space, Tuple
|
||||
|
||||
|
||||
@singledispatch
|
||||
|
Reference in New Issue
Block a user