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