style(types): use new bracex static typing support (#887)
* style(types): use new bracex static typing support * style(types): add a bit more basic typing * style(types): globally ignore ghapi * style(types): include a bit more in the global ignores * fix(types): line invalid on Python 3.6 * fix: require typing_extensions 3.10
This commit is contained in:
@@ -55,7 +55,9 @@ repos:
|
||||
exclude: ^(bin|cibuildwheel/resources|docs)/.*py$
|
||||
args: ["--python-version=3.6", "--scripts-are-modules", "--show-error-codes"]
|
||||
additional_dependencies: &mypy-dependencies
|
||||
- nox
|
||||
- packaging>=21.0
|
||||
- pygithub
|
||||
- rich
|
||||
- tomli
|
||||
- types-certifi
|
||||
@@ -64,9 +66,10 @@ repos:
|
||||
- types-jinja2
|
||||
- types-pyyaml
|
||||
- types-requests
|
||||
- bracex
|
||||
- id: mypy
|
||||
name: mypy 3.7+ on bin/
|
||||
files: ^((bin|docs)/.*py|noxfile.py)$
|
||||
files: ^((bin|docs)/.*py)$
|
||||
args: ["--python-version=3.7", "--scripts-are-modules", "--show-error-codes"]
|
||||
additional_dependencies: *mypy-dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user