forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
49 lines (45 loc) · 1.9 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
# black formatter takes care of the line length
line-length = 999
select = [
"E", # Pyflakes
"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
]
# Mininal python version we support is 3.7
target-version = "py37"
[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
# Quick exclusion of too-many-args in legacy files,
# due to there are too many violations in them.
"samtranslator/metrics/metrics.py" = ["PLR0913"]
"samtranslator/model/api/api_generator.py" = ["PLR0913"]
"samtranslator/model/api/http_api_generator.py" = ["PLR0913"]
"samtranslator/model/apigateway.py" = ["PLR0913"]
"samtranslator/model/apigatewayv2.py" = ["PLR0913"]
"samtranslator/model/eventsources/push.py" = ["PLR0913"]
"samtranslator/model/eventsources/scheduler.py" = ["PLR0913"]
"samtranslator/model/role_utils/role_constructor.py" = ["PLR0913"]
"samtranslator/model/sam_resources.py" = ["PLR0913"]
"samtranslator/model/stepfunctions/events.py" = ["PLR0913"]
"samtranslator/model/stepfunctions/generators.py" = ["PLR0913"]
"samtranslator/open_api/open_api.py" = ["PLR0913"]
"samtranslator/plugins/api/implicit_api_plugin.py" = ["PLR0913"]
"samtranslator/plugins/api/implicit_http_api_plugin.py" = ["PLR0913"]
"samtranslator/plugins/api/implicit_rest_api_plugin.py" = ["PLR0913"]
"samtranslator/plugins/application/serverless_app_plugin.py" = ["PLR0913"]
"samtranslator/swagger/swagger.py" = ["PLR0913"]
"samtranslator/translator/translator.py" = ["PLR0913"]
"samtranslator/validator/value_validator.py" = ["PLR0913"]