Debian Codegraph @

ansible_collections/community/crypto/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 # Better keep ignored (for now)
13 "F811", # Redefinition of unused `xxx` (happens a lot for fixtures in unit tests)
14 "E402", # Module level import not at top of file
15 "E741", # Ambiguous variable name
16 "UP012", # unnecessary-encode-utf8
17 "UP015", # Unnecessary mode argument
18 "SIM105", # suppressible-exception
19 "SIM108", # if-else-block-instead-of-if-exp
20 # To fix later:
21 "B905", # zip-without-explicit-strict - needs Python 3.10+
22 # To fix:
23 "UP024", # Replace aliased errors with `OSError`
24 ]
25
26 # Allow fix for all enabled rules (when `--fix`) is provided.
27 fixable = ["ALL"]
28 unfixable = []
29
30 # Allow unused variables when underscore-prefixed or starting with dummy
31 dummy-variable-rgx = "^(_|dummy).*$"
32
33 [lint.isort]
34 known-third-party = [
35 "ansible_collections.community.internal_test_tools",
36 ]