mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.6.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/asottile/pyupgrade: v3.10.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.15.2) - [github.com/psf/black: 23.7.0 → 24.4.0](https://github.com/psf/black/compare/23.7.0...24.4.0) - [github.com/asottile/blacken-docs: 1.15.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.15.0...1.16.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.9.0) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * make smoothererstep readable again, avoid overlong line * zoom_value more readable * fix blacken-docs touching .github * fix codespell setup, remove unnecessary file, fix some typos * flake8: ignore E704, triggered by overload * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update docs/source/tutorials/quickstart.rst * more flake fixes * try to make blacken-docs happy --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
44 lines
1.4 KiB
INI
44 lines
1.4 KiB
INI
[flake8]
|
|
# Exclude the grpc generated code
|
|
exclude = ./manim/grpc/gen/*, __pycache__,.git,
|
|
per-file-ignores = __init__.py:F401
|
|
max-complexity = 29
|
|
max-line-length = 88
|
|
statistics = True
|
|
# Prevents some flake8-rst-docstrings errors
|
|
rst-roles = attr,class,func,meth,mod,obj,ref,doc,exc
|
|
rst-directives = manim, SEEALSO, seealso
|
|
docstring-convention=numpy
|
|
|
|
select = A,A00,B,B9,C4,C90,D,E,F,F,PT,RST,SIM,W,F401
|
|
|
|
# General Compatibility
|
|
extend-ignore = E203, W503, D202, D212, D213, D404
|
|
|
|
# Misc
|
|
F401, F403, F405, F841, E501, E731, E402, F811, F821,
|
|
|
|
# multiple statements on one line (overload)
|
|
E704,
|
|
|
|
# Plug-in: flake8-builtins
|
|
A001, A002, A003,
|
|
|
|
# Plug-in: flake8-bugbear
|
|
B006, B007, B008, B009, B010, B903, B950,
|
|
|
|
# Plug-in: flake8-simplify
|
|
SIM105, SIM106, SIM119,
|
|
|
|
# Plug-in: flake8-pytest-style
|
|
PT001, PT004, PT006, PT011, PT018, PT022, PT023,
|
|
|
|
# Plug-in: flake8-docstrings
|
|
D100, D101, D102, D103, D104, D105, D106, D107,
|
|
D200, D202, D204, D205, D209,
|
|
D301,
|
|
D400, D401, D402, D403, D405, D406, D407, D409, D411, D412, D414,
|
|
|
|
# Plug-in: flake8-rst-docstrings
|
|
RST201, RST203, RST210, RST212, RST213, RST215,
|
|
RST301, RST303, RST499
|