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/asottile/pyupgrade: v2.37.1 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v2.37.1...v3.2.0) - [github.com/psf/black: 22.6.0 → 22.10.0](https://github.com/psf/black/compare/22.6.0...22.10.0) - [github.com/asottile/yesqa: v1.3.0 → v1.4.0](https://github.com/asottile/yesqa/compare/v1.3.0...v1.4.0) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.4) - [github.com/pre-commit/mirrors-mypy: v0.961 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.982) - [github.com/codespell-project/codespell: v2.1.0 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.2) * fixed B902 * ignore B903, B950 * fixed B902 for OpenGLMobject.affects_shader_info_id * ignore B902 in opengl_compatibility * fixed B902 in OpenGLVMobject.triggers_refreshed_triangulation * fixed codespell errors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move decorators outside of classes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added Nam to ignored words * ignore B902 in opengl_compatibility (again) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit119e7ddb88. * move yesqa after flake8 call * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove yesqa from pre-commit stack * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commita5b4f70f21. * codespell: ignore "nam" 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>
43 lines
1.4 KiB
INI
43 lines
1.4 KiB
INI
[flake8]
|
|
# Exclude the grpc generated code
|
|
exclude = ./manim/grpc/gen/*
|
|
max-complexity = 15
|
|
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
|
|
|
|
# General Compatibility
|
|
extend-ignore = E203, W503, D202, D212, D213, D404
|
|
|
|
# Misc
|
|
F401, F403, F405, F841, E501, E731, E402, F811, F821,
|
|
|
|
# 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-comprehensions
|
|
C901
|
|
|
|
# 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,
|