-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ruff.toml
22 lines (18 loc) · 764 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
target-version = "py310"
extend-exclude = [
"generated"
]
[lint]
select = ["A", "ASYNC", "I", "E", "F", "B", "C4", "T10", "T20", "EM", "ISC", "S", "CPY001"]
ignore = ["E501", "ISC001"]
preview = true
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[lint.isort]
known-first-party=["es_agent_client"]
[lint.per-file-ignores]
"tests/*" = ["B017", "S101", "S"]
[lint.flake8-copyright]
notice-rgx = "#\n# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n# or more contributor license agreements. Licensed under the Elastic License 2.0;\n# you may not use this file except in compliance with the Elastic License 2.0.\n#"