6 "^config/chroot_local-includes/usr/share/doc/tails/website/",
7 # submodules that we don't maintain
8 "^submodules/(chutney|live-build|torbrowser-launcher)",
10 mypy_path = "config/chroot_local-includes/usr/lib/python3/dist-packages"
12 warn_return_any = true
13 warn_unused_configs = true
15 [[tool.mypy.overrides]]
20 ignore_missing_imports = true
22 # https://github.com/astral-sh/ruff
24 # This configuration is applied to the ruff editor by default, *except* in the context of CI,
25 # where bin/test-utils/ruff.toml is applied.
26 # Please keep them meaningfully synchronized: this file is for SHOULDs, the other file is for MUSTs.
28 # If you want to override it, you can do so by creating `ruff.toml`. If you think that your reasons for
29 # overriding could better be made "global" please say so by creating an issue and proposing to change our
30 # Python style guidelines.
32 target-version = "py311"
35 "submodules/live-build",
36 "submodules/torbrowser-launcher",
41 # Derived from the flake8-builtins linter
43 # Derived from the flake8-async linter
45 # Derived from the flake8-bugbear linter
47 # Derived from the flake8-blind-except linter
49 # Derived from the flake8-comprehensions linter
51 # Derived from the mccabe linter
53 # Derived from the flake8-commas linter
55 # Derived from the pycodestyle linter
57 # Derived from the eradicate linter (commented-out-code)
59 # Derived from the flake8-executable linter
61 # Derived from the flynt linter,
63 # Derived from the flake8-logging-format linter
65 # Derived from the isort linter
67 # Derived from the flake8-import-conventions linter
69 # Derived from the flake8-gettext linter
71 # Derived from the flake8-implicit-str-concat linter
73 # Derived from the flake8-pie linter
75 # Derived from the pygrep-hooks linter
77 # Derived from the Pylint linter
82 # Derived from the flake8-pytest-style linter
84 # Derived from the flake8-pyi linter
86 # Derived from the flake8-return linter
88 # Derived from the flake8-raise linter
90 # Derived from the Ruff-specific rules linter
92 # Derived from the flake8-bandit linter (security)
94 # Derived from the flake8-self linter
96 # Derived from the flake8-simplify linter
98 # Derived from the flake8-slots linter
100 # Derived from the flake8-debugger linter
102 # Derived from the flake8-type-checking linter
104 # Derived from the flake8-tidy-imports linter
106 # Derived from the flake8-todos linter
108 # Derived from the tryceratops linter
110 # Derived from the pyupgrade linter
112 # Derived from the pycodestyle linter
114 # Derived from the flake8-2020 linter
118 # Accept shared, mostly innocuous habit
122 # Allow noqa directives that may be useful with other linters
124 # We don't compile Python code so our `assert`s won't be optimized out
126 # Prone to false positives (see https://github.com/astral-sh/ruff/issues/4045)
128 # We don't record the author of a TODO, for better or worse
130 # Accept commonly used "TODO:Bookworm"