-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
91 lines (88 loc) · 2.97 KB
/
ruff.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
target-version = "py38"
[lint]
select = ["ALL"]
ignore = [
'TD', # flake8-todos
'E712', # TrueFalseComparison # sqlalchemy
"E711", # none-comparison # sqlalchemy
"D100", # public-module
"D104", # public-package
"D107", # public-init
"D201", # no-blank-line-before-function
"D202", # no-blank-line-after-function
"D203", # one-blank-line-before-class
"D204", # one-blank-line-after-class
"D211", # no-blank-line-before-class
"D212", # multi-line-summary-first-line
"D213", # multi-line-summary-second-line
"D400", # ends-in-period
"D401", # non-imperative-mood
"D403", # first-line-capitalized
"D406", # new-line-after-section-name
"D407", # dashed-underline-after-section
"D417", # undocumented-param
"D415", # ends-in-punctuation
"EM101", # raw-string-in-exception
"TRY003", # raise-vanilla-args
"ANN401", # dynamically-typed-expression
"FBT002", # boolean-default-value-in-function-definition
"PGH003", # blanket-type-ignore
"SIM117", # multiple-with-statements # python3.8
"B905", # zip-without-explicit-strict
"PD010", # use-of-dot-pivot-or-unstack
"D105", # undocumented-magic-method
"TD", # flake8-todos
"FIX", # flake8-fixme
"D413", # blank-line-after-last-section
"PLR2044", # empty-comment
# ruff format
"W191", # tab-indentation
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"D206", # indent-with-spaces
"D300", # triple-single-quotes
"Q000", # bad-quotes-inline-string
"Q001", # bad-quotes-multiline-string
"Q002", # bad-quotes-docstring
"Q003", # avoidable-escaped-quote
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
# joblib
"FBT001",
"PLR0913"
]
fixable = [
"UP",
'F401', # unused imports
"F522", # string-dot-format-extra-named-arguments
"F541", # f-string-missing-placeholders
"W292", # no-new-line-at-end-of-file
"E711", # none-comparison
"E712", # true-false-comparison
"E713", # not-in-test
"E714", # not-is-test
"I001", # unsorted-imports
"UP037", # quoted-annotation
"W293", # blank-line-with-whitespace
"RSE102", # unnecessary-paren-on-raise-exception
"SIM108", # if-else-block-instead-of-if-exp
"I002", # missing-required-import
"RUF100", # unused-noqa
"RUF022", # unsorted-dunder-all
]
[lint.per-file-ignores]
"./src/joblib-stubs/externals/**/*.pyi" = ["F405"]
[format]
indent-style = "space"
preview = true
quote-style = "double"
skip-magic-trailing-comma = true
[lint.isort]
required-imports = ["from __future__ import annotations"]
# ruff format
force-single-line = false
force-wrap-aliases = false
split-on-trailing-comma = false