mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-08 00:30:55 +08:00
Configure mypy and flake8 for our re-export files
This removes the need to use __all__ in these files, while also allowing us to have strictness elsewhere in the codebase.
This commit is contained in:
10
setup.cfg
10
setup.cfg
@@ -15,6 +15,12 @@ ignore =
|
||||
W503,
|
||||
# Single letter loop variables are often fine
|
||||
E741,
|
||||
per-file-ignores =
|
||||
# Ignore apparently unused imports in files where we're (implicitly)
|
||||
# re-exporting them.
|
||||
jedi/__init__.py:F401
|
||||
jedi/inference/compiled/__init__.py:F401
|
||||
jedi/inference/value/__init__.py:F401
|
||||
exclude = jedi/third_party/* .tox/*
|
||||
|
||||
[pycodestyle]
|
||||
@@ -48,8 +54,8 @@ implicit_reexport = False
|
||||
|
||||
strict_equality = True
|
||||
|
||||
[mypy-jedi]
|
||||
# jedi/__init__.py contains only re-exports.
|
||||
[mypy-jedi,jedi.inference.compiled,jedi.inference.value]
|
||||
# Various __init__.py files which contain re-exports we want to implicitly make.
|
||||
implicit_reexport = True
|
||||
|
||||
[mypy-jedi.debug]
|
||||
|
||||
Reference in New Issue
Block a user