forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
37 lines (32 loc) · 946 Bytes
/
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
# black formatter takes care of the line length
line-length = 999
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # Pyflakes
"PL", # pylint
"I", # isort
"B", # flake8-bugbear
"A", # flake8-builtins
"S", # flake8-bandit
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"RUF", # Ruff-specific rules
"YTT", # flake8-2020
"UP", # pyupgrade
]
# Mininal python version we support is 3.7
target-version = "py37"
# https://github.com/charliermarsh/ruff/issues/2382
[pyupgrade]
keep-runtime-typing = true
[per-file-ignores]
# python scripts in bin/ needs some python path configurations before import
"bin/*.py" = ["E402"] # E402: module-import-not-at-top-of-file
[pylint]
max-args = 6 # We have many functions reaching 6 args