-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
50 lines (40 loc) · 1.39 KB
/
pyproject.toml
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
[tool.isort]
line_length = 88
[tool.pytest.ini_options]
markers = 'longrunner: test runs for a long time (>10min)'
filterwarnings = [
"ignore:cannot collect test class 'TestException':",
'ignore:the imp module is deprecated in favour of importlib:DeprecationWarning',
]
[tool.yapf]
# Note: Only things in parenthesis get split to the next line
# This affects import, calculations, bitwise ops
# Strings don't get split up either
based_on_style = "google"
column_limit = 88
# class Foo:
# # <------ this blank line
# def method():
# pass
blank_line_before_nested_class_or_def = false
# Set to True to prefer splitting before '+', '-', '*', '/', '//', or '@'
# rather than after.
split_before_arithmetic_operator = true
# Set to True to prefer splitting before '&', '|' or '^' rather than
# after.
split_before_bitwise_operator = true
# Split before the '.' if we need to split a longer expression:
#
# foo = ('This is a really long string: {}, {}, {}, {}'.format(a, b, c, d))
#
# would reformat to something like:
#
# foo = ('This is a really long string: {}, {}, {}, {}'
# .format(a, b, c, d))
split_before_dot = true
# Set to True to prefer splitting before 'and' or 'or' rather than
# after.
split_before_logical_operator = true
# Split named assignments onto individual lines.
split_before_named_assigns = false
split_penalty_after_opening_bracket = 30000000