This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
64 lines (57 loc) · 2.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##################################################
# flake8 #
##################################################
[flake8]
ignore =
W503, # line break before binary operator
D100, # Missing docstring in public module
D101, # Missing docstring in public class
D102, # Missing docstring in public method
D104, # Missing docstring in public package
D106, # Missing docstring in public nested class
D200, # One-line docstring should fit on one line with quotes
D202, # No blank lines allowed after function docstring
D204, # 1 blank line required after class docstring
D205, # 1 blank line required between summary line and description
D400, # First line should end with a period
D406 # 1 blank line required before class docstring
max-line-length = 120
max-complexity = 18
select = B,C,E,F,W,T4,B9
enable-extensions = I,A,G,D
application-import-names = api,config,post,model_utils,saas,appointment,user
import-order-style = google
docstring-convention = numpy
exclude = migrations
##################################################
# isort #
##################################################
[isort]
multi_line_output = 2
line_length = 120
order_by_type = false
##################################################
# mypy #
##################################################
[mypy]
strict = true
show_error_codes = true
mypy_path = ./importer/plugins
plugins = sqlmypy
[mypy-mysql.connector.abstracts,MySQLdb.connections]
ignore_missing_imports = true
[mypy-airflow.providers.mysql.hooks.mysql,airflow.providers.http.hooks.http]
ignore_missing_imports = true
##################################################
# yapf #
##################################################
[yapf]
based_on_style = google
column_limit = 120
split_before_logical_operator = true
split_before_dot = true
coalesce_brackets = true
align_closing_bracket_with_visual_indent = true
allow_split_before_dict_value = false
blank_line_before_nested_class_or_def = true
blank_lines_around_top_level_definition = 2