Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

--warn-unused-config should not be a strict flag#21139

Merged
JukkaL merged 1 commit intopython:masterpython/mypy:masterfrom
ilevkivskyi:unused-config-no-strictilevkivskyi/mypy:unused-config-no-strictCopy head branch name to clipboard
Apr 1, 2026
Merged

--warn-unused-config should not be a strict flag#21139
JukkaL merged 1 commit intopython:masterpython/mypy:masterfrom
ilevkivskyi:unused-config-no-strictilevkivskyi/mypy:unused-config-no-strictCopy head branch name to clipboard

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

Fixes #21137

This flag has nothing to with type checking strictness, it is a convenience option for config maintenance.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 1, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

psycopg (https://github.com/psycopg/psycopg)
- pyproject.toml: note: unused section(s): module = ['polib', 'scrap.*']

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pyproject.toml: note: unused section(s): module = ['test.*']

sphinx (https://github.com/sphinx-doc/sphinx)
- pyproject.toml: note: unused section(s): module = ['pyximport', 'tests.test_config.test_config', 'tests.test_directives.test_directive_other', 'tests.test_domains.test_domain_c', 'tests.test_domains.test_domain_cpp', 'tests.test_domains.test_domain_js', 'tests.test_domains.test_domain_py', 'tests.test_domains.test_domain_py_fields', 'tests.test_domains.test_domain_py_pyfunction', 'tests.test_domains.test_domain_py_pyobject', 'tests.test_domains.test_domain_std', 'tests.test_environment.test_environment_toctree', 'tests.test_ext_autodoc.test_ext_autodoc', 'tests.test_ext_autodoc.test_ext_autodoc_mock', 'tests.test_ext_autosummary.test_ext_autosummary', 'tests.test_ext_intersphinx.test_ext_intersphinx', 'tests.test_ext_napoleon.test_ext_napoleon_docstring', 'tests.test_extensions.test_ext_apidoc', 'tests.test_extensions.test_ext_inheritance_diagram', 'tests.test_search', 'tests.test_util.test_util_inspect', 'tests.test_util.test_util_nodes', 'tests.test_util.test_util_typing', 'tests.test_util.typing_test_data']

svcs (https://github.com/hynek/svcs)
- pyproject.toml: note: unused section(s): module = ['conftest', 'health_check_pyramid', 'pytest.*']

pylint (https://github.com/pycqa/pylint)
- pyproject.toml: note: unused section(s): module = ['colorama', 'contributors_txt', 'coverage', 'git.*', 'mccabe', 'pytest_benchmark.*', 'sphinx.*']

dulwich (https://github.com/dulwich/dulwich)
- pyproject.toml: note: unused section(s): module = ['atheris', 'fastimport.*']

black (https://github.com/psf/black)
- pyproject.toml: note: unused section(s): module = ['tests.data.*']

packaging (https://github.com/pypa/packaging)
- pyproject.toml: note: unused section(s): module = ['pkg_resources', 'pretend', 'progress.*']

artigraph (https://github.com/artigraph/artigraph)
- pyproject.toml: note: unused section(s): module = ['sh']

bokeh (https://github.com/bokeh/bokeh)
- pyproject.toml: note: unused section(s): module = ['tests.*', 'tests.codebase.*', 'tests.support.defaults', 'tests.test_bokehjs', 'tests.test_cross', 'tests.test_defaults', 'tests.test_examples', 'tests.unit.bokeh.document.test_callbacks__document', 'tests.unit.bokeh.embed.test_standalone', 'tests.unit.bokeh.test_layouts__typing', 'tests.unit.bokeh.test_typing']

isort (https://github.com/pycqa/isort)
- pyproject.toml: note: unused section(s): module = ['importlib_metadata.*', 'tests.*']

nox (https://github.com/wntrblm/nox)
- pyproject.toml: note: unused section(s): module = ['tox.*']

boostedblob (https://github.com/hauntsaninja/boostedblob)
- pyproject.toml: note: unused section(s): module = ['tests.*', 'xmltodict.*']

@JukkaL JukkaL merged commit 554fb8c into python:master Apr 1, 2026
25 checks passed
@ilevkivskyi ilevkivskyi deleted the unused-config-no-strict branch April 1, 2026 17:31
hauntsaninja pushed a commit that referenced this pull request Apr 5, 2026
Fixes #21137

This flag has nothing to with type checking strictness, it is a
convenience option for config maintenance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"note: unused section(s)" incompatible with command line list of files

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.