Debian Codegraph @

ansible_collections/community/dns/ruff.toml

raw
1 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
2 # SPDX-License-Identifier: GPL-3.0-or-later
3 # SPDX-FileCopyrightText: 2025 Felix Fontein <[email protected]>
4
5 line-length = 160
6
7 [lint]
8 # https://docs.astral.sh/ruff/rules/
9
10 select = ["A", "B", "E", "F", "FA", "FLY", "UP", "SIM"]
11 ignore = [
12 # Needed:
13 "E402", # Module level import not at top of file
14 # Wait for Python 3.10:
15 "SIM117", # Combine multiple 'with' statements
16 # Dubious:
17 "SIM105", # suppressible-exception
18 "SIM108", # Use ternary instead of if-then-else
19 "UP012", # Unnecessary call to `encode` as UTF-8
20 "UP015", # Unnecessary mode argument
21 ]
22
23 # Allow fix for all enabled rules (when `--fix`) is provided.
24 fixable = ["ALL"]
25 unfixable = []
26
27 # Allow unused variables when underscore-prefixed or starting with dummy
28 dummy-variable-rgx = "^(_|dummy).*$"
29
30 [lint.isort]
31 known-third-party = [
32 "ansible_collections.community.internal_test_tools",
33 "ansible_collections.community.library_inventory_filtering_v1",
34 ]