-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed as not planned
Labels
Description
Documentation
hello,
Could anyone provide a better doc about the exculde section in the pyproject.toml file ?
Current doc says:
[tool.mypy]
python_version = "2.7"
warn_return_any = true
warn_unused_configs = true
exclude = [
'^file1\.py$', # TOML literal string (single-quotes, no escaping necessary)
"^file2\\.py$", # TOML basic string (double-quotes, backslash and other characters need escaping)
]IMHO, it's not very clear, at least, it should explain what kind of files are exclude by the syntax of '^file1\.py$', and what for "^file2\\.py$". And is it for any file with the same name under any folder ?
In addition, could you please provide an example how to exclude by a file path keywork. Suppose i have some files located at : /a/b/c/file.py, I would like to exclude all files where their location has the keywork /c/, how to achieve that.
nathanjmcdougall, sortafreel, chandrasekharan-zipstack, mrpeunov, AndreiMiculita and 1 more