-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.cfg
42 lines (39 loc) · 1.18 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[flake8]
docstring-convention = numpy
max-line-length = 88
max-complexity = 12
;W503: Line break occurred before a binary operator
;E203: Whitespace before ':'
;D203: 1 blank line required before class docstring
;D401: First line should be in imperative mood
;D107: Missing docstring in __init__
;S101: Multi-line construct missing trailing comma
ignore = W503, E203, D203, D401, D107, S101
exclude =
dist/*,
build/*,
.pytest_cache/*,
.git/*,
pip/*,
# Automatically generated files via thrift, no need to re-format them
hive_metastore_client/clients/thrift_hive_metastore_client/*,
hive_metastore_client/services/thrift_facebook_service/*
per-file-ignores =
# We will not check for docstrings or the use of asserts in tests
tests/*:D,S101
setup.py:D,S101
# Ignoring 'imported but unused' error in init files
__init__.py:F401
[mypy]
# suppress errors about unsatisfied imports
ignore_missing_imports=True
# be strict
warn_return_any = True
strict_optional = True
warn_no_return = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_any_generics = True
disallow_untyped_defs = True
check_untyped_defs = True
disallow_untyped_calls = True