[tool.mypy] show_column_numbers = true show_error_context = true ignore_missing_imports = true follow_imports = "normal" check_untyped_defs = true warn_unused_ignores = true warn_return_any = true warn_unused_configs = true warn_redundant_casts = true strict_equality = true disallow_untyped_decorators = true disallow_any_generics = true disallow_subclassing_any = true disallow_untyped_calls = true disallow_incomplete_defs = true disallow_untyped_defs = true no_implicit_reexport = true extra_checks = true # keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml' exclude = ''' (?x)( doc | examples | releasenotes ) ''' [[tool.mypy.overrides]] module = ["keystoneauth1.tests.unit.*"] ignore_errors = true [[tool.mypy.overrides]] module = [ "keystoneauth1.fixture.*", "keystoneauth1.hacking.*", ] disallow_subclassing_any = false disallow_untyped_defs = false disallow_untyped_calls = false [tool.ruff] line-length = 79 target-version = "py38" [tool.ruff.lint] # enable the following rule classes: # # C4: https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4 # UP: https://docs.astral.sh/ruff/rules/#pyupgrade-up select = ["C4", "UP"] [tool.ruff.format] quote-style = "preserve" docstring-code-format = true skip-magic-trailing-comma = true