Skip to content

Commit a3cbe54

Browse files
committed
Add special mypy config for Python 3.6
1 parent e5a98be commit a3cbe54

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.pre-commit-config-py36.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.1.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
exclude: docs/CNAME
8+
- id: check-docstring-first
9+
exclude: singlestoredb/clients/pymysqlsv/charset.py
10+
- id: check-json
11+
- id: check-added-large-files
12+
# - id: check-yaml
13+
- id: debug-statements
14+
# - id: name-tests-test
15+
- id: double-quote-string-fixer
16+
- id: requirements-txt-fixer
17+
- repo: https://github.com/PyCQA/flake8
18+
rev: 5.0.4
19+
hooks:
20+
- id: flake8
21+
exclude: singlestoredb/clients/pymysqlsv/
22+
additional_dependencies: [flake8-typing-imports==1.12.0]
23+
- repo: https://github.com/pre-commit/mirrors-autopep8
24+
rev: v1.6.0
25+
hooks:
26+
- id: autopep8
27+
- repo: https://github.com/asottile/reorder_python_imports
28+
rev: v2.6.0
29+
hooks:
30+
- id: reorder-python-imports
31+
args: [--py36-plus]
32+
- repo: https://github.com/asottile/add-trailing-comma
33+
rev: v2.2.1
34+
hooks:
35+
- id: add-trailing-comma
36+
args: [--py36-plus]
37+
- repo: https://github.com/asottile/setup-cfg-fmt
38+
rev: v1.20.0
39+
hooks:
40+
- id: setup-cfg-fmt
41+
- repo: https://github.com/pre-commit/mirrors-mypy
42+
rev: v0.971
43+
hooks:
44+
- id: mypy
45+
additional_dependencies: [types-all]

0 commit comments

Comments
 (0)