Adds flake8-type-checking

flake8 now checks for proper type hinting.
Required when commiting new code.
This commit is contained in:
Luís Murta 2021-06-21 23:31:46 +01:00
parent 393e3310a4
commit fe2b347a53
Signed by: satprog
GPG Key ID: DDF2EFC6179009DC
2 changed files with 7 additions and 0 deletions

6
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,6 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [ flake8-type-checking ]

View File

@ -1,2 +1,3 @@
[flake8] [flake8]
max-line-length = 120 max-line-length = 120
enable-extensions = TC, TC1