mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-19 12:44:11 +08:00
chore(ci): move mypy config to pyproject.toml (#94)
This commit is contained in:
@ -28,30 +28,3 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-requests, types-setuptools]
|
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
|
|
||||||
|
@ -70,6 +70,35 @@ py_version = 38
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ["py38"]
|
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]
|
||||||
[tool.poetry.plugins."console_scripts"]
|
[tool.poetry.plugins."console_scripts"]
|
||||||
manim-slides = "manim_slides.__main__:cli"
|
manim-slides = "manim_slides.__main__:cli"
|
||||||
|
Reference in New Issue
Block a user