Closes #914 Additional changes: - Deprecate python below 11 - Remove 3rd party and throughput tests. This simplifies install and test pipeline - Remove gym compatibility and shimmy - Format with 3.11 conventions. In particular, add `zip(..., strict=True/False)` where possible Since the additional tests and gym were complicating the CI pipeline (flaky and dist-dependent), it didn't make sense to work on fixing the current tests in this PR to then just delete them in the next one. So this PR changes the build and removes these tests at the same time.
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
default_install_hook_types: [commit-msg, pre-commit]
|
|
default_stages: [commit, manual]
|
|
fail_fast: false
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- repo: local
|
|
hooks:
|
|
- id: ruff
|
|
name: ruff
|
|
entry: poetry run ruff
|
|
require_serial: true
|
|
language: system
|
|
types: [python]
|
|
- id: black
|
|
name: black
|
|
entry: poetry run black
|
|
require_serial: true
|
|
language: system
|
|
types: [python]
|
|
- id: poetry-check
|
|
name: poetry check
|
|
entry: poetry check
|
|
language: system
|
|
files: pyproject.toml
|
|
pass_filenames: false
|
|
- id: poetry-lock-check
|
|
name: poetry lock check
|
|
entry: poetry lock
|
|
args: [--check]
|
|
language: system
|
|
pass_filenames: false
|
|
- id: mypy
|
|
name: mypy
|
|
entry: poetry run mypy tianshou
|
|
# filenames should not be passed as they would collide with the config in pyproject.toml
|
|
pass_filenames: false
|
|
files: '^tianshou(/[^/]*)*/[^/]*\.py$'
|
|
language: system
|