kmk_firmware/pyproject.toml
sofubi 75f9d10cc7 Add types to validators, time, types
Update pyproject.toml to ignore boards, user_keymaps for mypy
Update pyproject.toml to reduce loud mypy reporting
2021-08-15 21:23:02 +00:00

42 lines
856 B
TOML

[tool.black]
# since black refuses to allow single-quotes... see locked conversation at
# https://github.com/psf/black/issues/594
skip-string-normalization = true
target = "py36"
# explicitly exculde user_keymaps from black formatting rules
# because a visually-appealing keymap list will be flattened
# by black into a much harder to understand format
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| \.pytest_cache
| \.compiled
| dist
| boards
| build
| docs
| user_keymaps
| mnt
)/
'''
[tool.pyright]
include = ["kmk"]
exclude = [
"hardware",
".venv",
"user_keymaps",
"boards"
]
reportMissingModuleSource = false
# reports missing typestubs allowing for a code action to
# create new library typestubs
reportMissingTypeStubs = true
[tool.mypy]
exclude = "boards/|user_keymaps/"
ignore_missing_imports = true