[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,
