forked from Lightning-Universe/lightning-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
68 lines (56 loc) · 1.3 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
64
65
66
67
68
[tool:pytest]
norecursedirs =
.git
dist
build
addopts =
--strict
--doctest-modules
--color=yes
[coverage:report]
exclude_lines =
pragma: no-cover
pass
[flake8]
max-line-length = 120
exclude = .tox,*.egg,build,temp
select = E,W,F
doctests = True
verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
ignore =
E731 # do not assign a lambda expression, use a def
W504 # line break occurred after a binary operator
[metadata]
license_file = LICENSE
description-file = README.md
[yapf]
based_on_style = pep8
spaces_before_comment = 2
split_before_logical_operator = true
split_before_arithmetic_operator = true
COLUMN_LIMIT = 120
COALESCE_BRACKETS = true
DEDENT_CLOSING_BRACKETS = true
ALLOW_SPLIT_BEFORE_DICT_VALUE = false
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
NO_SPACES_AROUND_SELECTED_BINARY_OPERATORS = false
[isort]
known_first_party =
lightning_transformers
tests
examples
profile = "google"
line_length = 120
force_sort_within_sections = false
order_by_type = false
# TODO: enable when better supported
#[mypy]
#files = lightning_transformers, train.py
#disallow_untyped_defs = True
#ignore_missing_imports = True
#show_error_codes = True
#warn_redundant_casts = True
#warn_unused_configs = True
#warn_unused_ignores = True