Tianshou/setup.cfg
Markus Krimmel 4c3791a459
Updated atari wrappers, fixed pre-commit (#781)
This PR addresses #772 (updates Atari wrappers to work with new Gym API)
and some additional issues:

- Pre-commit was using gitlab for flake8, which as of recently requires
authentication -> Replaced with GitHub
- Yapf was quietly failing in pre-commit. Changed it such that it fixes
formatting in-place
- There is an incompatibility between flake8 and yapf where yapf puts
binary operators after the line break and flake8 wants it before the
break. I added an exception for flake8.
- Also require `packaging` in setup.py

My changes shouldn't change the behaviour of the wrappers for older
versions, but please double check.
Idk whether it's just me, but there are always some incompatibilities
between yapf and flake8 that need to resolved manually. It might make
sense to try black instead.
2022-12-04 13:00:53 -08:00

49 lines
885 B
INI

[flake8]
exclude =
.git
log
__pycache__
docs
build
dist
*.egg-info
max-line-length = 87
ignore = B305,W504,B006,B008,B024,W503
[yapf]
based_on_style = pep8
dedent_closing_brackets = true
column_limit = 87
blank_line_before_nested_class_or_def = true
[isort]
profile = black
multi_line_output = 3
line_length = 87
[mypy]
files = tianshou/**/*.py
allow_redefinition = True
check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
ignore_missing_imports = True
no_implicit_optional = True
pretty = True
show_error_codes = True
show_error_context = True
show_traceback = True
strict_equality = True
strict_optional = True
warn_no_return = True
warn_redundant_casts = True
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True
[pydocstyle]
ignore = D100,D102,D104,D105,D107,D203,D213,D401,D402
[doc8]
max-line-length = 1000