mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-25 23:29:59 +00:00
It's not realistic to enable full-blown type checks within test_runner's codebase, since the amount of warnings revealed by mypy is overwhelming. Tests are supposed to be easy to use, so we can't cripple everybody's workflow for the sake of imaginary benefit. Ultimately, the purpose of this attempt is three-fold: * Facilitate code navigation when paired with python-language-server. * Make method signatures apparent to a fellow programmer. * Occasionally catch some obvious type errors.
29 lines
550 B
INI
29 lines
550 B
INI
# Just trying to gather linter settings in one file.
|
|
# I wonder if there's a way to de-duplicate them...
|
|
|
|
[flake8]
|
|
max-line-length = 100
|
|
|
|
[pycodestyle]
|
|
max-line-length = 100
|
|
|
|
[yapf]
|
|
based_on_style = pep8
|
|
column_limit = 100
|
|
|
|
[mypy]
|
|
# some tests don't typecheck when this flag is set
|
|
check_untyped_defs = false
|
|
|
|
disallow_incomplete_defs = false
|
|
disallow_untyped_calls = false
|
|
disallow_untyped_decorators = false
|
|
disallow_untyped_defs = false
|
|
strict = true
|
|
|
|
[mypy-psycopg2.*]
|
|
ignore_missing_imports = true
|
|
|
|
[mypy-pytest.*]
|
|
ignore_missing_imports = true
|