diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b255fed..db1ddde 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,30 +28,3 @@ repos: hooks: - id: mypy additional_dependencies: [types-requests, types-setuptools] - args: - - --install-types - - --non-interactive - - --ignore-missing-imports - # Disallow dynamic typing - - --disallow-any-generics - - --disallow-subclassing-any - - # Disallow untyped definitions and calls - - --disallow-untyped-defs - - --disallow-incomplete-defs - - --check-untyped-defs - - # None and optional handling - - --no-implicit-optional - - # Configuring warnings - - --warn-unused-ignores - - --warn-no-return - - --no-warn-return-any - - --warn-redundant-casts - - # Strict equality - - --strict-equality - - # Config file - - --warn-unused-configs diff --git a/pyproject.toml b/pyproject.toml index 973c9a4..01528ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,6 +70,35 @@ py_version = 38 [tool.black] target-version = ["py38"] +[tool.mypy] +python_version = "3.8" +install-types = true +non-interactive = true +ignore-missing-imports = true +# Disallow dynamic typing +disallow-any-generics = true +disallow-subclassing-any = true + +# Disallow untyped definitions and calls +disallow-untyped-defs = true +disallow-incomplete-defs = true +check-untyped-defs = true + +# None and optional handling +no-implicit-optional = true + +# Configuring warnings +warn-unused-ignores = true +warn-no-return = true +no-warn-return-any = true +warn-redundant-casts = true + +# Strict equality +strict-equality = true + +# Config file +warn-unused-configs = true + [tool.poetry.plugins] [tool.poetry.plugins."console_scripts"] manim-slides = "manim_slides.__main__:cli"