diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 55ab2ca1fdf9..f8263498c4da 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,27 +169,27 @@ supported: be listed here, for security reasons. See [this issue](https://github.com/typeshed-internal/stub_uploader/issues/90) for more information about what external dependencies are allowed. -* `extra_description` (optional): Can be used to add a custom description to +* `extra-description` (optional): Can be used to add a custom description to the package's long description. It should be a multi-line string in Markdown format. -* `stub_distribution` (optional): Distribution name to be uploaded to PyPI. +* `stub-distribution` (optional): Distribution name to be uploaded to PyPI. This defaults to `types-` and should only be set in special cases. -* `upstream_repository` (recommended): The URL of the upstream repository. -* `obsolete_since` (optional): This field is part of our process for +* `upstream-repository` (recommended): The URL of the upstream repository. +* `obsolete-since` (optional): This field is part of our process for [removing obsolete third-party libraries](#third-party-library-removal-policy). It contains the first version of the corresponding library that ships its own `py.typed` file. -* `no_longer_updated` (optional): This field is set to `true` before removing +* `no-longer-updated` (optional): This field is set to `true` before removing stubs for other reasons than the upstream library shipping with type information. * `upload` (optional): This field is set to `false` to prevent automatic uploads to PyPI. This should only be used in special cases, e.g. when the stubs break the upload. -* `partial_stub` (optional): This field marks the type stub package as +* `partial-stub` (optional): This field marks the type stub package as [partial](https://peps.python.org/pep-0561/#partial-stub-packages). This is for 3rd-party stubs that don't cover the entirety of the package's public API. -* `requires_python` (optional): The minimum version of Python required to install +* `requires-python` (optional): The minimum version of Python required to install the type stub package. It must be in the form `>=3.*`. If omitted, the oldest Python version supported by typeshed is used. @@ -198,36 +198,36 @@ This has the following keys: * `skip` (default: `false`): Whether stubtest should be run against this package. Please avoid setting this to `true`, and add a comment if you have to. -* `ignore_missing_stub`: When set to `true`, this will add the - `--ignore_missing_stub` option to the stubtest call. See +* `ignore-missing-stub`: When set to `true`, this will add the + `--ignore-missing-stub` option to the stubtest call. See [tests/README.md](./tests/README.md) for more information. In most cases, - this field should be identical to `partial_stub`. -* `stubtest_dependencies` (default: `[]`): A list of Python packages that need + this field should be identical to `partial-stub`. +* `stubtest-dependencies` (default: `[]`): A list of Python packages that need to be installed for stubtest to run successfully. These packages are installed in addition to the dependencies in the `dependencies` field. -* `apt_dependencies` (default: `[]`): A list of Ubuntu APT packages +* `apt-dependencies` (default: `[]`): A list of Ubuntu APT packages that need to be installed for stubtest to run successfully. -* `brew_dependencies` (default: `[]`): A list of MacOS Homebrew packages +* `brew-dependencies` (default: `[]`): A list of MacOS Homebrew packages that need to be installed for stubtest to run successfully -* `choco_dependencies` (default: `[]`): A list of Windows Chocolatey packages +* `choco-dependencies` (default: `[]`): A list of Windows Chocolatey packages that need to be installed for stubtest to run successfully -* `supported_platforms` (default: all platforms): A list of OSes on which +* `supported-platforms` (default: all platforms): A list of OSes on which stubtest can be run. When a package is not platform-specific, this should not be set. If the package is platform-specific, this should usually be set to the supported platforms, unless stubtest is known to fail on a specific platform. -* `ci_platforms` (default: `["linux"]`): A list of OSes on which to run +* `ci-platforms` (default: `["linux"]`): A list of OSes on which to run stubtest as part of our continuous integration (CI) tests. Can contain `win32`, `linux`, and `darwin` values. If not specified, stubtest is run only on `linux`. Only add extra OSes to the test if there are platform-specific branches in a stubs package. -* `mypy_plugins` (default: `[]`): A list of Python modules to use as mypy plugins -when running stubtest. For example: `mypy_plugins = ["mypy_django_plugin.main"]` -* `mypy_plugins_config` (default: `{}`): A dictionary mapping plugin names to their +* `mypy-plugins` (default: `[]`): A list of Python modules to use as mypy plugins +when running stubtest. For example: `mypy-plugins = ["mypy_django_plugin.main"]` +* `mypy-plugins-config` (default: `{}`): A dictionary mapping plugin names to their configuration dictionaries for use by mypy plugins. For example: -`mypy_plugins_config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}}` +`mypy-plugins-config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}}` -`*_dependencies` are usually packages needed to `pip install` the implementation +`*-dependencies` are usually packages needed to `pip install` the implementation distribution. The format of all `METADATA.toml` files can be checked by running @@ -436,7 +436,7 @@ following criteria is met: Case 1: If a package ships its own `py.typed` file, please follow these steps: -1. Make sure **stubsabot** open a PR that sets the `obsolete_since` field in the +1. Make sure **stubsabot** open a PR that sets the `obsolete-since` field in the `METADATA.toml` file to the first version of the package that shipped `py.typed`. 2. After at least six months, make sure **stubsabot** open a PR to remove the stubs. @@ -446,7 +446,7 @@ these steps: 1. Open an issue explaining why the stubs should be removed. 2. A maintainer will add the ["stubs: removal" label](https://github.com/python/typeshed/labels/%22stubs%3A%20removal%22). -3. Open a PR that sets the `no_longer_updated` field in the `METADATA.toml` +3. Open a PR that sets the `no-longer-updated` field in the `METADATA.toml` file to `true`. 4. When a new version of the package was automatically uploaded to PyPI (which can take up to a day), make sure **stubsabot** open a PR to remove the stubs. diff --git a/lib/ts_utils/metadata.py b/lib/ts_utils/metadata.py index a33b1ff113f9..642b1241f6de 100644 --- a/lib/ts_utils/metadata.py +++ b/lib/ts_utils/metadata.py @@ -58,7 +58,7 @@ def _is_nested_dict(obj: object) -> TypeGuard[dict[str, dict[str, Any]]]: @functools.cache def get_oldest_supported_python() -> str: with PYPROJECT_PATH.open("rb") as config: - val = tomllib.load(config)["tool"]["typeshed"]["oldest_supported_python"] + val = tomllib.load(config)["tool"]["typeshed"]["oldest-supported-python"] assert type(val) is str return val @@ -102,16 +102,16 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings: data: dict[str, object] = tomllib.load(f).get("tool", {}).get("stubtest", {}) skip: object = data.get("skip", False) - apt_dependencies: object = data.get("apt_dependencies", []) - brew_dependencies: object = data.get("brew_dependencies", []) - choco_dependencies: object = data.get("choco_dependencies", []) + apt_dependencies: object = data.get("apt-dependencies", []) + brew_dependencies: object = data.get("brew-dependencies", []) + choco_dependencies: object = data.get("choco-dependencies", []) extras: object = data.get("extras", []) - ignore_missing_stub: object = data.get("ignore_missing_stub", False) - supported_platforms: object = data.get("supported_platforms") - ci_platforms: object = data.get("ci_platforms", DEFAULT_STUBTEST_PLATFORMS) - stubtest_dependencies: object = data.get("stubtest_dependencies", []) - mypy_plugins: object = data.get("mypy_plugins", []) - mypy_plugins_config: object = data.get("mypy_plugins_config", {}) + ignore_missing_stub: object = data.get("ignore-missing-stub", False) + supported_platforms: object = data.get("supported-platforms") + ci_platforms: object = data.get("ci-platforms", DEFAULT_STUBTEST_PLATFORMS) + stubtest_dependencies: object = data.get("stubtest-dependencies", []) + mypy_plugins: object = data.get("mypy-plugins", []) + mypy_plugins_config: object = data.get("mypy-plugins-config", {}) assert type(skip) is bool assert type(ignore_missing_stub) is bool @@ -128,12 +128,12 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings: assert _is_nested_dict(mypy_plugins_config) unrecognised_platforms = set(ci_platforms) - _STUBTEST_PLATFORM_MAPPING.keys() - assert not unrecognised_platforms, f"Unrecognised ci_platforms specified for {distribution!r}: {unrecognised_platforms}" + assert not unrecognised_platforms, f"Unrecognised ci-platforms specified for {distribution!r}: {unrecognised_platforms}" if supported_platforms is not None: assert set(ci_platforms).issubset( supported_platforms - ), f"ci_platforms must be a subset of supported_platforms for {distribution!r}" + ), f"ci-platforms must be a subset of supported-platforms for {distribution!r}" for platform, dep_key in _STUBTEST_PLATFORM_MAPPING.items(): if platform not in ci_platforms: @@ -194,31 +194,31 @@ def is_obsolete(self) -> bool: { "version", "dependencies", - "extra_description", - "stub_distribution", - "upstream_repository", - "obsolete_since", - "no_longer_updated", + "extra-description", + "stub-distribution", + "upstream-repository", + "obsolete-since", + "no-longer-updated", "upload", "tool", - "partial_stub", - "requires_python", + "partial-stub", + "requires-python", "mypy-tests", } ) _KNOWN_METADATA_TOOL_FIELDS: Final = { "stubtest": { "skip", - "apt_dependencies", - "brew_dependencies", - "choco_dependencies", + "apt-dependencies", + "brew-dependencies", + "choco-dependencies", "extras", - "ignore_missing_stub", - "supported_platforms", - "ci_platforms", - "stubtest_dependencies", - "mypy_plugins", - "mypy_plugins_config", + "ignore-missing-stub", + "supported-platforms", + "ci-platforms", + "stubtest-dependencies", + "mypy-plugins", + "mypy-plugins-config", } } _DIST_NAME_RE: Final = re.compile(r"^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$", re.IGNORECASE) @@ -259,41 +259,41 @@ def read_metadata(distribution: str) -> StubMetadata: assert isinstance(dependencies_s, list) dependencies = [parse_dependencies(distribution, dep) for dep in dependencies_s] - extra_description: object = data.get("extra_description") # pyright: ignore[reportUnknownMemberType] + extra_description: object = data.get("extra-description") # pyright: ignore[reportUnknownMemberType] assert isinstance(extra_description, (str, type(None))) - if "stub_distribution" in data: - stub_distribution = data["stub_distribution"] + if "stub-distribution" in data: + stub_distribution = data["stub-distribution"] assert isinstance(stub_distribution, str) - assert _DIST_NAME_RE.fullmatch(stub_distribution), f"Invalid 'stub_distribution' value for {distribution!r}" + assert _DIST_NAME_RE.fullmatch(stub_distribution), f"Invalid 'stub-distribution' value for {distribution!r}" else: stub_distribution = f"types-{distribution}" - upstream_repository: object = data.get("upstream_repository") # pyright: ignore[reportUnknownMemberType] + upstream_repository: object = data.get("upstream-repository") # pyright: ignore[reportUnknownMemberType] assert isinstance(upstream_repository, (str, type(None))) if isinstance(upstream_repository, str): parsed_url = urllib.parse.urlsplit(upstream_repository) - assert parsed_url.scheme == "https", f"{distribution}: URLs in the upstream_repository field should use https" + assert parsed_url.scheme == "https", f"{distribution}: URLs in the upstream-repository field should use https" no_www_please = ( - f"{distribution}: `World Wide Web` subdomain (`www.`) should be removed from URLs in the upstream_repository field" + f"{distribution}: `World Wide Web` subdomain (`www.`) should be removed from URLs in the upstream-repository field" ) assert not parsed_url.netloc.startswith("www."), no_www_please no_query_params_please = ( - f"{distribution}: Query params (`?`) should be removed from URLs in the upstream_repository field" + f"{distribution}: Query params (`?`) should be removed from URLs in the upstream-repository field" ) assert parsed_url.hostname in _QUERY_URL_ALLOWLIST or (not parsed_url.query), no_query_params_please - no_fragments_please = f"{distribution}: Fragments (`#`) should be removed from URLs in the upstream_repository field" + no_fragments_please = f"{distribution}: Fragments (`#`) should be removed from URLs in the upstream-repository field" assert not parsed_url.fragment, no_fragments_please if parsed_url.netloc == "github.com": cleaned_url_path = parsed_url.path.strip("/") num_url_path_parts = len(Path(cleaned_url_path).parts) bad_github_url_msg = ( - f"Invalid upstream_repository for {distribution!r}: " + f"Invalid upstream-repository for {distribution!r}: " "URLs for GitHub repositories always have two parts in their paths" ) assert num_url_path_parts == 2, bad_github_url_msg - obsolete_since: object = data.get("obsolete_since") # pyright: ignore[reportUnknownMemberType] + obsolete_since: object = data.get("obsolete-since") # pyright: ignore[reportUnknownMemberType] assert isinstance(obsolete_since, (String, type(None))) if obsolete_since: comment = obsolete_since.trivia.comment @@ -302,13 +302,13 @@ def read_metadata(distribution: str) -> StubMetadata: obsolete = ObsoleteMetadata(since_version=obsolete_since, since_date=since_date) else: obsolete = None - no_longer_updated: object = data.get("no_longer_updated", False) # pyright: ignore[reportUnknownMemberType] + no_longer_updated: object = data.get("no-longer-updated", False) # pyright: ignore[reportUnknownMemberType] assert type(no_longer_updated) is bool uploaded_to_pypi: object = data.get("upload", True) # pyright: ignore[reportUnknownMemberType] assert type(uploaded_to_pypi) is bool - partial_stub: object = data.get("partial_stub", True) # pyright: ignore[reportUnknownMemberType] + partial_stub: object = data.get("partial-stub", True) # pyright: ignore[reportUnknownMemberType] assert type(partial_stub) is bool - requires_python_str: object = data.get("requires_python") # pyright: ignore[reportUnknownMemberType] + requires_python_str: object = data.get("requires-python") # pyright: ignore[reportUnknownMemberType] oldest_supported_python = get_oldest_supported_python() oldest_supported_python_specifier = Specifier(f">={oldest_supported_python}") if requires_python_str is None: @@ -316,12 +316,12 @@ def read_metadata(distribution: str) -> StubMetadata: else: assert isinstance(requires_python_str, str) requires_python = Specifier(requires_python_str) - assert requires_python != oldest_supported_python_specifier, f'requires_python="{requires_python}" is redundant' + assert requires_python != oldest_supported_python_specifier, f'requires-python="{requires_python}" is redundant' # Check minimum Python version is not less than the oldest version of Python supported by typeshed assert oldest_supported_python_specifier.contains( requires_python.version - ), f"'requires_python' contains versions lower than typeshed's oldest supported Python ({oldest_supported_python})" - assert requires_python.operator == ">=", "'requires_python' should be a minimum version specifier, use '>=3.x'" + ), f"'requires-python' contains versions lower than typeshed's oldest supported Python ({oldest_supported_python})" + assert requires_python.operator == ">=", "'requires-python' should be a minimum version specifier, use '>=3.x'" empty_tools: dict[object, object] = {} tools_settings: object = data.get("tool", empty_tools) # pyright: ignore[reportUnknownMemberType] @@ -361,6 +361,9 @@ def update_metadata(distribution: str, **new_values: object) -> tomlkit.TOMLDocu except FileNotFoundError: raise NoSuchStubError(f"Typeshed has no stubs for {distribution!r}!") from None data.update(new_values) # pyright: ignore[reportUnknownMemberType] # tomlkit.TOMLDocument.update is partially typed + for key in list(data.keys()): + new_key = key.replace("_", "-") # pyright: ignore[reportUnknownMemberType] # tomlkit.TOMLDocument.keys is partially typed + data[new_key] = data.pop(key) # pyright: ignore[reportUnknownMemberType] # tomlkit.TOMLDocument.pop is partially typed with path.open("w", encoding="UTF-8") as file: tomlkit.dump(data, file) # pyright: ignore[reportUnknownMemberType] # tomlkit.dump has partially unknown Mapping type return data diff --git a/pyproject.toml b/pyproject.toml index b17677df41af..0c67abbfe7b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -265,4 +265,4 @@ extra-standard-library = [ known-first-party = ["_utils", "ts_utils"] [tool.typeshed] -oldest_supported_python = "3.10" +oldest-supported-python = "3.10" diff --git a/scripts/create_baseline_stubs.py b/scripts/create_baseline_stubs.py index 35653e7bd850..4d1548e3583e 100755 --- a/scripts/create_baseline_stubs.py +++ b/scripts/create_baseline_stubs.py @@ -134,11 +134,11 @@ def create_metadata(project: str, stub_dir: Path, version: str) -> None: if upstream_repo_url is None: warning = ( f"\nCould not find a URL pointing to the source code for {project!r}.\n" - f"Please add it as `upstream_repository` to `stubs/{project}/METADATA.toml`, if possible!\n" + f"Please add it as `upstream-repository` to `stubs/{project}/METADATA.toml`, if possible!\n" ) print(termcolor.colored(warning, "red")) else: - metadata += f'upstream_repository = "{upstream_repo_url}"\n' + metadata += f'upstream-repository = "{upstream_repo_url}"\n' print(f"Writing {filename}") filename.write_text(metadata, encoding="UTF-8") diff --git a/scripts/stubsabot.py b/scripts/stubsabot.py index f97bf5e4048f..926b22c8a620 100755 --- a/scripts/stubsabot.py +++ b/scripts/stubsabot.py @@ -607,7 +607,7 @@ def parse_no_longer_updated_from_archive(source: zipfile.ZipFile | tarfile.TarFi with file as f: toml_data: dict[str, object] = tomllib.load(f) - no_longer_updated = toml_data.get("no_longer_updated", False) + no_longer_updated = toml_data.get("no-longer-updated", False) assert type(no_longer_updated) is bool return bool(no_longer_updated) diff --git a/stubs/Authlib/METADATA.toml b/stubs/Authlib/METADATA.toml index c6ac49d3689e..dedeaf8861e0 100644 --- a/stubs/Authlib/METADATA.toml +++ b/stubs/Authlib/METADATA.toml @@ -1,3 +1,3 @@ version = "1.6.9" -upstream_repository = "https://github.com/authlib/authlib" +upstream-repository = "https://github.com/authlib/authlib" dependencies = ["cryptography"] diff --git a/stubs/Deprecated/METADATA.toml b/stubs/Deprecated/METADATA.toml index c16442798e88..43db3066d9b7 100644 --- a/stubs/Deprecated/METADATA.toml +++ b/stubs/Deprecated/METADATA.toml @@ -1,3 +1,3 @@ version = "~=1.3.1" -upstream_repository = "https://github.com/laurent-laporte-pro/deprecated" +upstream-repository = "https://github.com/laurent-laporte-pro/deprecated" dependencies = [] diff --git a/stubs/Flask-Cors/METADATA.toml b/stubs/Flask-Cors/METADATA.toml index 50a6e7eb3a3a..5e71c765653b 100644 --- a/stubs/Flask-Cors/METADATA.toml +++ b/stubs/Flask-Cors/METADATA.toml @@ -1,4 +1,4 @@ version = "6.0.*" -upstream_repository = "https://github.com/corydolphin/flask-cors" +upstream-repository = "https://github.com/corydolphin/flask-cors" # Requires a version of flask with a `py.typed` file dependencies = ["Flask>=2.0.0"] diff --git a/stubs/Flask-Migrate/METADATA.toml b/stubs/Flask-Migrate/METADATA.toml index 517f60640c25..526b6c3e0d03 100644 --- a/stubs/Flask-Migrate/METADATA.toml +++ b/stubs/Flask-Migrate/METADATA.toml @@ -1,4 +1,4 @@ version = "4.1.*" -upstream_repository = "https://github.com/miguelgrinberg/Flask-Migrate" +upstream-repository = "https://github.com/miguelgrinberg/Flask-Migrate" # Requires versions of flask and Flask-SQLAlchemy with `py.typed` files dependencies = ["Flask-SQLAlchemy>=3.0.1", "Flask>=2.0.0"] diff --git a/stubs/Flask-SocketIO/METADATA.toml b/stubs/Flask-SocketIO/METADATA.toml index 8060e89dc917..ef14c192a276 100644 --- a/stubs/Flask-SocketIO/METADATA.toml +++ b/stubs/Flask-SocketIO/METADATA.toml @@ -1,3 +1,3 @@ version = "5.6.*" dependencies = ["Flask>=0.9"] -upstream_repository = "https://github.com/miguelgrinberg/flask-socketio" +upstream-repository = "https://github.com/miguelgrinberg/flask-socketio" diff --git a/stubs/JACK-Client/METADATA.toml b/stubs/JACK-Client/METADATA.toml index 34d6058a3b05..40a0bac719cf 100644 --- a/stubs/JACK-Client/METADATA.toml +++ b/stubs/JACK-Client/METADATA.toml @@ -1,12 +1,12 @@ version = "0.5.*" -upstream_repository = "https://github.com/spatialaudio/jackclient-python" +upstream-repository = "https://github.com/spatialaudio/jackclient-python" # Requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20", "types-cffi"] [tool.stubtest] # darwin and win32 are equivalent -ci_platforms = ["darwin", "linux"] -apt_dependencies = ["libjack-dev"] -brew_dependencies = ["jack"] +ci-platforms = ["darwin", "linux"] +apt-dependencies = ["libjack-dev"] +brew-dependencies = ["jack"] # No need to install on the CI. Leaving here as information for Windows contributors. -# choco_dependencies = ["jack"] +# choco-dependencies = ["jack"] diff --git a/stubs/Jetson.GPIO/METADATA.toml b/stubs/Jetson.GPIO/METADATA.toml index b353483b67af..9afedb7c6c2b 100644 --- a/stubs/Jetson.GPIO/METADATA.toml +++ b/stubs/Jetson.GPIO/METADATA.toml @@ -1,2 +1,2 @@ version = "2.1.12" -upstream_repository = "https://github.com/NVIDIA/jetson-gpio" +upstream-repository = "https://github.com/NVIDIA/jetson-gpio" diff --git a/stubs/Markdown/METADATA.toml b/stubs/Markdown/METADATA.toml index c29279ee2404..1e61a2413cbb 100644 --- a/stubs/Markdown/METADATA.toml +++ b/stubs/Markdown/METADATA.toml @@ -1,2 +1,2 @@ version = "~=3.10.2" -upstream_repository = "https://github.com/Python-Markdown/markdown" +upstream-repository = "https://github.com/Python-Markdown/markdown" diff --git a/stubs/PyAutoGUI/METADATA.toml b/stubs/PyAutoGUI/METADATA.toml index 21cb893fd8af..32947c6d216d 100644 --- a/stubs/PyAutoGUI/METADATA.toml +++ b/stubs/PyAutoGUI/METADATA.toml @@ -1,3 +1,3 @@ version = "0.9.*" -upstream_repository = "https://github.com/asweigart/pyautogui" +upstream-repository = "https://github.com/asweigart/pyautogui" dependencies = ["types-PyScreeze"] diff --git a/stubs/PyMeeus/METADATA.toml b/stubs/PyMeeus/METADATA.toml index edd8e1ea4bbc..f8508a58ef40 100644 --- a/stubs/PyMeeus/METADATA.toml +++ b/stubs/PyMeeus/METADATA.toml @@ -1,2 +1,2 @@ version = "0.5.*" -upstream_repository = "https://github.com/architest/pymeeus" +upstream-repository = "https://github.com/architest/pymeeus" diff --git a/stubs/PyMySQL/METADATA.toml b/stubs/PyMySQL/METADATA.toml index 5712897f5e72..55b5654668ef 100644 --- a/stubs/PyMySQL/METADATA.toml +++ b/stubs/PyMySQL/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/PyMySQL/PyMySQL" +upstream-repository = "https://github.com/PyMySQL/PyMySQL" diff --git a/stubs/PyScreeze/METADATA.toml b/stubs/PyScreeze/METADATA.toml index 4c3d870afb6b..e14ea274756e 100644 --- a/stubs/PyScreeze/METADATA.toml +++ b/stubs/PyScreeze/METADATA.toml @@ -1,11 +1,11 @@ version = "1.0.1" -upstream_repository = "https://github.com/asweigart/pyscreeze" +upstream-repository = "https://github.com/asweigart/pyscreeze" dependencies = ["Pillow>=10.3.0"] [tool.stubtest] # Linux has extra constants, win32 has different definitions -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] # PyScreeze has an odd setup.py file # that doesn't list Pillow as a dependency for py312+ yet: # https://github.com/asweigart/pyscreeze/blob/eeca245a135cf171c163b3691300138518efa64e/setup.py#L38-L46 -stubtest_dependencies = ["Pillow"] +stubtest-dependencies = ["Pillow"] diff --git a/stubs/PySocks/METADATA.toml b/stubs/PySocks/METADATA.toml index e99f8028c0fe..2c0e6928c02f 100644 --- a/stubs/PySocks/METADATA.toml +++ b/stubs/PySocks/METADATA.toml @@ -1,2 +1,2 @@ version = "1.7.1" -upstream_repository = "https://github.com/Anorov/PySocks" +upstream-repository = "https://github.com/Anorov/PySocks" diff --git a/stubs/PyYAML/METADATA.toml b/stubs/PyYAML/METADATA.toml index c31b588e644c..036c3b255825 100644 --- a/stubs/PyYAML/METADATA.toml +++ b/stubs/PyYAML/METADATA.toml @@ -1,2 +1,2 @@ version = "6.0.*" -upstream_repository = "https://github.com/yaml/pyyaml" +upstream-repository = "https://github.com/yaml/pyyaml" diff --git a/stubs/Pygments/METADATA.toml b/stubs/Pygments/METADATA.toml index 3303aa8c712f..41f7ee57a067 100644 --- a/stubs/Pygments/METADATA.toml +++ b/stubs/Pygments/METADATA.toml @@ -1,7 +1,7 @@ version = "2.20.*" -upstream_repository = "https://github.com/pygments/pygments" +upstream-repository = "https://github.com/pygments/pygments" dependencies = ["types-docutils"] -partial_stub = true +partial-stub = true [tool.stubtest] -stubtest_dependencies = ["sphinx"] +stubtest-dependencies = ["sphinx"] diff --git a/stubs/RPi.GPIO/METADATA.toml b/stubs/RPi.GPIO/METADATA.toml index c70910d69e4e..503497d94a9f 100644 --- a/stubs/RPi.GPIO/METADATA.toml +++ b/stubs/RPi.GPIO/METADATA.toml @@ -1,10 +1,10 @@ version = "0.7.*" -upstream_repository = "https://sourceforge.net/p/raspberry-gpio-python/code/" +upstream-repository = "https://sourceforge.net/p/raspberry-gpio-python/code/" [tool.stubtest] # This package is only supported on Raspberry Pi hardware, which identifies # itself as 'linux'. When run on other hardware, it raises a RuntimeError: # RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi! # https://sourceforge.net/p/raspberry-gpio-python/code/ci/08048dd1894a6b09a104557b6eaa6bb68b6baac5/tree/source/py_gpio.c#l1008 -supported_platforms = [] -ci_platforms = [] +supported-platforms = [] +ci-platforms = [] diff --git a/stubs/Send2Trash/METADATA.toml b/stubs/Send2Trash/METADATA.toml index f41db2607366..53406caa9583 100644 --- a/stubs/Send2Trash/METADATA.toml +++ b/stubs/Send2Trash/METADATA.toml @@ -1,2 +1,2 @@ version = "2.1.*" -upstream_repository = "https://github.com/arsenetar/send2trash" +upstream-repository = "https://github.com/arsenetar/send2trash" diff --git a/stubs/TgCrypto/METADATA.toml b/stubs/TgCrypto/METADATA.toml index e941624c0da4..d859dd089bf5 100644 --- a/stubs/TgCrypto/METADATA.toml +++ b/stubs/TgCrypto/METADATA.toml @@ -1,2 +1,2 @@ version = "1.2.*" -upstream_repository = "https://github.com/pyrogram/tgcrypto" +upstream-repository = "https://github.com/pyrogram/tgcrypto" diff --git a/stubs/WTForms/METADATA.toml b/stubs/WTForms/METADATA.toml index f53b7378f234..62e6a60d86ce 100644 --- a/stubs/WTForms/METADATA.toml +++ b/stubs/WTForms/METADATA.toml @@ -1,3 +1,3 @@ version = "~= 3.2.1" -upstream_repository = "https://github.com/pallets-eco/wtforms" +upstream-repository = "https://github.com/pallets-eco/wtforms" dependencies = ["MarkupSafe"] diff --git a/stubs/WebOb/METADATA.toml b/stubs/WebOb/METADATA.toml index b3a8d04dff57..ada90c3cf66c 100644 --- a/stubs/WebOb/METADATA.toml +++ b/stubs/WebOb/METADATA.toml @@ -1,2 +1,2 @@ version = "1.8.*" -upstream_repository = "https://github.com/Pylons/webob" +upstream-repository = "https://github.com/Pylons/webob" diff --git a/stubs/aiofiles/METADATA.toml b/stubs/aiofiles/METADATA.toml index e3119727954b..c990b4bf835f 100644 --- a/stubs/aiofiles/METADATA.toml +++ b/stubs/aiofiles/METADATA.toml @@ -1,6 +1,6 @@ version = "25.1.*" -upstream_repository = "https://github.com/Tinche/aiofiles" +upstream-repository = "https://github.com/Tinche/aiofiles" [tool.stubtest] # linux and darwin are equivalent -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/antlr4-python3-runtime/METADATA.toml b/stubs/antlr4-python3-runtime/METADATA.toml index 8fc5b261fb0c..65d20d6ee09d 100644 --- a/stubs/antlr4-python3-runtime/METADATA.toml +++ b/stubs/antlr4-python3-runtime/METADATA.toml @@ -1,5 +1,5 @@ version = "4.13.*" -upstream_repository = "https://github.com/antlr/antlr4" +upstream-repository = "https://github.com/antlr/antlr4" [tool.stubtest] -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/assertpy/METADATA.toml b/stubs/assertpy/METADATA.toml index 548b8958cc26..506bfdd1124b 100644 --- a/stubs/assertpy/METADATA.toml +++ b/stubs/assertpy/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/assertpy/assertpy" +upstream-repository = "https://github.com/assertpy/assertpy" diff --git a/stubs/atheris/METADATA.toml b/stubs/atheris/METADATA.toml index a99a31584640..bab88d8adf00 100644 --- a/stubs/atheris/METADATA.toml +++ b/stubs/atheris/METADATA.toml @@ -1,6 +1,6 @@ version = "3.0.*" -upstream_repository = "https://github.com/google/atheris" -partial_stub = true +upstream-repository = "https://github.com/google/atheris" +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true diff --git a/stubs/auth0-python/METADATA.toml b/stubs/auth0-python/METADATA.toml index a7d136713aeb..ca72bbfc9705 100644 --- a/stubs/auth0-python/METADATA.toml +++ b/stubs/auth0-python/METADATA.toml @@ -1,3 +1,3 @@ version = "4.10.*" -upstream_repository = "https://github.com/auth0/auth0-python" +upstream-repository = "https://github.com/auth0/auth0-python" dependencies = ["cryptography", "types-requests"] diff --git a/stubs/aws-xray-sdk/METADATA.toml b/stubs/aws-xray-sdk/METADATA.toml index 9dc0897df2d1..015cbb61e4a0 100644 --- a/stubs/aws-xray-sdk/METADATA.toml +++ b/stubs/aws-xray-sdk/METADATA.toml @@ -1,2 +1,2 @@ version = "2.15.*" -upstream_repository = "https://github.com/aws/aws-xray-sdk-python" +upstream-repository = "https://github.com/aws/aws-xray-sdk-python" diff --git a/stubs/behave/METADATA.toml b/stubs/behave/METADATA.toml index 5ad943a6ddc2..937f37b750e4 100644 --- a/stubs/behave/METADATA.toml +++ b/stubs/behave/METADATA.toml @@ -1,6 +1,6 @@ version = "1.3.*" -upstream_repository = "https://github.com/behave/behave" -partial_stub = true +upstream-repository = "https://github.com/behave/behave" +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true diff --git a/stubs/binaryornot/METADATA.toml b/stubs/binaryornot/METADATA.toml index e177662d807d..3146145847b8 100644 --- a/stubs/binaryornot/METADATA.toml +++ b/stubs/binaryornot/METADATA.toml @@ -1,3 +1,3 @@ version = "0.4.*" -upstream_repository = "https://github.com/binaryornot/binaryornot" -obsolete_since = "0.5.0" # Released on 2026-03-07 +upstream-repository = "https://github.com/binaryornot/binaryornot" +obsolete-since = "0.5.0" # Released on 2026-03-07 diff --git a/stubs/bleach/METADATA.toml b/stubs/bleach/METADATA.toml index 4a698e42015d..827e1197d332 100644 --- a/stubs/bleach/METADATA.toml +++ b/stubs/bleach/METADATA.toml @@ -1,6 +1,6 @@ version = "6.3.*" dependencies = ["types-html5lib"] -upstream_repository = "https://github.com/mozilla/bleach" +upstream-repository = "https://github.com/mozilla/bleach" [tool.stubtest] extras = ["css"] diff --git a/stubs/boltons/METADATA.toml b/stubs/boltons/METADATA.toml index ffd472f488d7..829db8486880 100644 --- a/stubs/boltons/METADATA.toml +++ b/stubs/boltons/METADATA.toml @@ -1,2 +1,2 @@ version = "25.0.*" -upstream_repository = "https://github.com/mahmoud/boltons" +upstream-repository = "https://github.com/mahmoud/boltons" diff --git a/stubs/braintree/METADATA.toml b/stubs/braintree/METADATA.toml index b9a6efe6e027..5a102b9ffc6f 100644 --- a/stubs/braintree/METADATA.toml +++ b/stubs/braintree/METADATA.toml @@ -1,2 +1,2 @@ version = "4.42.*" -upstream_repository = "https://github.com/braintree/braintree_python" +upstream-repository = "https://github.com/braintree/braintree_python" diff --git a/stubs/cachetools/METADATA.toml b/stubs/cachetools/METADATA.toml index 70052083c405..11f301c967c2 100644 --- a/stubs/cachetools/METADATA.toml +++ b/stubs/cachetools/METADATA.toml @@ -1,2 +1,2 @@ version = "6.2.*" -upstream_repository = "https://github.com/tkem/cachetools" +upstream-repository = "https://github.com/tkem/cachetools" diff --git a/stubs/capturer/METADATA.toml b/stubs/capturer/METADATA.toml index 01ed91c42370..a64fd3f58135 100644 --- a/stubs/capturer/METADATA.toml +++ b/stubs/capturer/METADATA.toml @@ -1,2 +1,2 @@ version = "3.0.*" -upstream_repository = "https://github.com/xolox/python-capturer" +upstream-repository = "https://github.com/xolox/python-capturer" diff --git a/stubs/cffi/METADATA.toml b/stubs/cffi/METADATA.toml index 11eeef3f50d7..b42e584ae0b2 100644 --- a/stubs/cffi/METADATA.toml +++ b/stubs/cffi/METADATA.toml @@ -1,7 +1,7 @@ version = "2.0.*" -upstream_repository = "https://github.com/python-cffi/cffi/" +upstream-repository = "https://github.com/python-cffi/cffi/" dependencies = ["types-setuptools"] [tool.stubtest] # linux and darwin are mostly equivalent, except for a single `RTLD_DEEPBIND` variable -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/channels/METADATA.toml b/stubs/channels/METADATA.toml index 9f185366599b..cc2d2a599826 100644 --- a/stubs/channels/METADATA.toml +++ b/stubs/channels/METADATA.toml @@ -1,8 +1,8 @@ version = "4.3.*" -upstream_repository = "https://github.com/django/channels" +upstream-repository = "https://github.com/django/channels" dependencies = ["django-stubs>=4.2", "asgiref"] [tool.stubtest] -mypy_plugins = ['mypy_django_plugin.main'] -mypy_plugins_config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}} -stubtest_dependencies = ["daphne"] +mypy-plugins = ['mypy_django_plugin.main'] +mypy-plugins-config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}} +stubtest-dependencies = ["daphne"] diff --git a/stubs/chevron/METADATA.toml b/stubs/chevron/METADATA.toml index 10bcb5ccb4b7..83c82dbd7688 100755 --- a/stubs/chevron/METADATA.toml +++ b/stubs/chevron/METADATA.toml @@ -1,4 +1,4 @@ version = "0.14.*" -upstream_repository = "https://github.com/noahmorrison/chevron" +upstream-repository = "https://github.com/noahmorrison/chevron" [tool.stubtest] diff --git a/stubs/click-default-group/METADATA.toml b/stubs/click-default-group/METADATA.toml index 352488b61e5a..d59ab76ab915 100644 --- a/stubs/click-default-group/METADATA.toml +++ b/stubs/click-default-group/METADATA.toml @@ -1,4 +1,4 @@ version = "1.2.*" -upstream_repository = "https://github.com/click-contrib/click-default-group" +upstream-repository = "https://github.com/click-contrib/click-default-group" # requires a version of click with a py.typed dependencies = ["click>=8.0.0"] diff --git a/stubs/click-log/METADATA.toml b/stubs/click-log/METADATA.toml index abf06fcaa75e..b0192b0669d0 100644 --- a/stubs/click-log/METADATA.toml +++ b/stubs/click-log/METADATA.toml @@ -1,3 +1,3 @@ version = "0.4.*" dependencies = ["click>=8.0.0"] -upstream_repository = "https://github.com/click-contrib/click-log" +upstream-repository = "https://github.com/click-contrib/click-log" diff --git a/stubs/click-shell/METADATA.toml b/stubs/click-shell/METADATA.toml index 49c228167c5c..6d8aa15caf14 100644 --- a/stubs/click-shell/METADATA.toml +++ b/stubs/click-shell/METADATA.toml @@ -1,3 +1,3 @@ version = "2.1" -upstream_repository = "https://github.com/clarkperkins/click-shell" +upstream-repository = "https://github.com/clarkperkins/click-shell" dependencies = ["click>=8.0.0"] diff --git a/stubs/click-spinner/METADATA.toml b/stubs/click-spinner/METADATA.toml index 7360ba2d2993..d9a2e7307af8 100644 --- a/stubs/click-spinner/METADATA.toml +++ b/stubs/click-spinner/METADATA.toml @@ -1,2 +1,2 @@ version = "0.1.*" -upstream_repository = "https://github.com/click-contrib/click-spinner" +upstream-repository = "https://github.com/click-contrib/click-spinner" diff --git a/stubs/click-web/METADATA.toml b/stubs/click-web/METADATA.toml index f3d3c10a610d..a0ef4e108b51 100644 --- a/stubs/click-web/METADATA.toml +++ b/stubs/click-web/METADATA.toml @@ -1,3 +1,3 @@ version = "0.8.*" dependencies = ["click>=8.0.0", "Flask>=2.3.2"] -upstream_repository = "https://github.com/fredrik-corneliusson/click-web" +upstream-repository = "https://github.com/fredrik-corneliusson/click-web" diff --git a/stubs/colorama/METADATA.toml b/stubs/colorama/METADATA.toml index 980206462d55..42172a31b734 100644 --- a/stubs/colorama/METADATA.toml +++ b/stubs/colorama/METADATA.toml @@ -1,5 +1,5 @@ version = "0.4.*" -upstream_repository = "https://github.com/tartley/colorama" +upstream-repository = "https://github.com/tartley/colorama" [tool.stubtest] -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/colorful/METADATA.toml b/stubs/colorful/METADATA.toml index 251b9ed1e241..51d16a937052 100644 --- a/stubs/colorful/METADATA.toml +++ b/stubs/colorful/METADATA.toml @@ -1,2 +1,2 @@ version = "0.5.*" -upstream_repository = "https://github.com/timofurrer/colorful" +upstream-repository = "https://github.com/timofurrer/colorful" diff --git a/stubs/console-menu/METADATA.toml b/stubs/console-menu/METADATA.toml index 857d25a71759..dbaaa6fd0ec8 100644 --- a/stubs/console-menu/METADATA.toml +++ b/stubs/console-menu/METADATA.toml @@ -1,2 +1,2 @@ version = "0.8.*" -upstream_repository = "https://github.com/aegirhall/console-menu" +upstream-repository = "https://github.com/aegirhall/console-menu" diff --git a/stubs/convertdate/METADATA.toml b/stubs/convertdate/METADATA.toml index f8f016bb7ffb..4210dc427019 100644 --- a/stubs/convertdate/METADATA.toml +++ b/stubs/convertdate/METADATA.toml @@ -1,2 +1,2 @@ version = "2.4.1" -upstream_repository = "https://github.com/fitnr/convertdate" +upstream-repository = "https://github.com/fitnr/convertdate" diff --git a/stubs/croniter/METADATA.toml b/stubs/croniter/METADATA.toml index f5736563c005..529763bce322 100644 --- a/stubs/croniter/METADATA.toml +++ b/stubs/croniter/METADATA.toml @@ -1,2 +1,2 @@ version = "6.2.2" -upstream_repository = "https://github.com/pallets-eco/croniter" +upstream-repository = "https://github.com/pallets-eco/croniter" diff --git a/stubs/datauri/METADATA.toml b/stubs/datauri/METADATA.toml index e1a37a722126..1c6aeddc2a16 100644 --- a/stubs/datauri/METADATA.toml +++ b/stubs/datauri/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/eclecticiq/python-data-uri" +upstream-repository = "https://github.com/eclecticiq/python-data-uri" diff --git a/stubs/dateparser/METADATA.toml b/stubs/dateparser/METADATA.toml index 4e41b8d39f70..916a76d5bb0d 100644 --- a/stubs/dateparser/METADATA.toml +++ b/stubs/dateparser/METADATA.toml @@ -1,5 +1,5 @@ version = "~=1.4.0" -upstream_repository = "https://github.com/scrapinghub/dateparser" +upstream-repository = "https://github.com/scrapinghub/dateparser" [tool.stubtest] extras = ["fasttext", "langdetect"] diff --git a/stubs/decorator/METADATA.toml b/stubs/decorator/METADATA.toml index de85f855da53..a59937f02dc8 100644 --- a/stubs/decorator/METADATA.toml +++ b/stubs/decorator/METADATA.toml @@ -1,2 +1,2 @@ version = "5.2.*" -upstream_repository = "https://github.com/micheles/decorator" +upstream-repository = "https://github.com/micheles/decorator" diff --git a/stubs/defusedxml/METADATA.toml b/stubs/defusedxml/METADATA.toml index 54560092e3ea..96a6481f670b 100644 --- a/stubs/defusedxml/METADATA.toml +++ b/stubs/defusedxml/METADATA.toml @@ -1,5 +1,5 @@ version = "0.7.*" -upstream_repository = "https://github.com/tiran/defusedxml" +upstream-repository = "https://github.com/tiran/defusedxml" [tool.stubtest] -stubtest_dependencies = ["lxml"] +stubtest-dependencies = ["lxml"] diff --git a/stubs/dirhash/METADATA.toml b/stubs/dirhash/METADATA.toml index a39d6c7bc868..a49924a2eb8a 100644 --- a/stubs/dirhash/METADATA.toml +++ b/stubs/dirhash/METADATA.toml @@ -1,2 +1,2 @@ version = "0.5.*" -upstream_repository = "https://github.com/andhus/dirhash-python" +upstream-repository = "https://github.com/andhus/dirhash-python" diff --git a/stubs/django-filter/METADATA.toml b/stubs/django-filter/METADATA.toml index 82441a5f79f4..775f52e20022 100644 --- a/stubs/django-filter/METADATA.toml +++ b/stubs/django-filter/METADATA.toml @@ -1,7 +1,7 @@ version = "25.2.*" -upstream_repository = "https://github.com/carltongibson/django-filter/" +upstream-repository = "https://github.com/carltongibson/django-filter/" dependencies = ["django-stubs"] [tool.stubtest] -mypy_plugins = ["mypy_django_plugin.main"] -mypy_plugins_config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}} +mypy-plugins = ["mypy_django_plugin.main"] +mypy-plugins-config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}} diff --git a/stubs/django-import-export/METADATA.toml b/stubs/django-import-export/METADATA.toml index 64c84c2d3e8e..9452959702c8 100644 --- a/stubs/django-import-export/METADATA.toml +++ b/stubs/django-import-export/METADATA.toml @@ -1,5 +1,5 @@ version = "4.4.*" -upstream_repository = "https://github.com/django-import-export/django-import-export" +upstream-repository = "https://github.com/django-import-export/django-import-export" dependencies = ["django-stubs"] # Add tablib when typed, and update _Incomplete aliases in stubs [tool.stubtest] diff --git a/stubs/docker/METADATA.toml b/stubs/docker/METADATA.toml index 21602af49ace..1d82f1593534 100644 --- a/stubs/docker/METADATA.toml +++ b/stubs/docker/METADATA.toml @@ -1,3 +1,3 @@ version = "7.1.*" -upstream_repository = "https://github.com/docker/docker-py" +upstream-repository = "https://github.com/docker/docker-py" dependencies = ["types-paramiko", "types-requests", "urllib3>=2"] diff --git a/stubs/dockerfile-parse/METADATA.toml b/stubs/dockerfile-parse/METADATA.toml index a252e11f2b67..8f5cd433f5de 100644 --- a/stubs/dockerfile-parse/METADATA.toml +++ b/stubs/dockerfile-parse/METADATA.toml @@ -1,2 +1,2 @@ version = "2.0.*" -upstream_repository = "https://github.com/containerbuildsystem/dockerfile-parse" +upstream-repository = "https://github.com/containerbuildsystem/dockerfile-parse" diff --git a/stubs/docutils/METADATA.toml b/stubs/docutils/METADATA.toml index 1a84d3665e0c..3d0d77995d83 100644 --- a/stubs/docutils/METADATA.toml +++ b/stubs/docutils/METADATA.toml @@ -1,2 +1,2 @@ version = "0.22.3" -upstream_repository = "https://sourceforge.net/p/docutils/code" +upstream-repository = "https://sourceforge.net/p/docutils/code" diff --git a/stubs/editdistance/METADATA.toml b/stubs/editdistance/METADATA.toml index 076f99ee8e0c..2c5ced48093a 100644 --- a/stubs/editdistance/METADATA.toml +++ b/stubs/editdistance/METADATA.toml @@ -1,2 +1,2 @@ version = "0.8.*" -upstream_repository = "https://github.com/roy-ht/editdistance" +upstream-repository = "https://github.com/roy-ht/editdistance" diff --git a/stubs/entrypoints/METADATA.toml b/stubs/entrypoints/METADATA.toml index a1a81ef24ff8..cd6b4631d954 100644 --- a/stubs/entrypoints/METADATA.toml +++ b/stubs/entrypoints/METADATA.toml @@ -1,2 +1,2 @@ version = "0.4.*" -upstream_repository = "https://github.com/takluyver/entrypoints" +upstream-repository = "https://github.com/takluyver/entrypoints" diff --git a/stubs/ephem/METADATA.toml b/stubs/ephem/METADATA.toml index ea821e2fee21..1f1f7d6bc0e3 100644 --- a/stubs/ephem/METADATA.toml +++ b/stubs/ephem/METADATA.toml @@ -1,2 +1,2 @@ version = "4.2.*" -upstream_repository = "https://github.com/brandon-rhodes/pyephem" +upstream-repository = "https://github.com/brandon-rhodes/pyephem" diff --git a/stubs/et_xmlfile/METADATA.toml b/stubs/et_xmlfile/METADATA.toml index 6307b2971bd2..db02b864055f 100644 --- a/stubs/et_xmlfile/METADATA.toml +++ b/stubs/et_xmlfile/METADATA.toml @@ -1,2 +1,2 @@ version = "2.0.*" -upstream_repository = "https://foss.heptapod.net/openpyxl/et_xmlfile" +upstream-repository = "https://foss.heptapod.net/openpyxl/et_xmlfile" diff --git a/stubs/fanstatic/METADATA.toml b/stubs/fanstatic/METADATA.toml index 2f2663de3aea..a7eea5dca12e 100644 --- a/stubs/fanstatic/METADATA.toml +++ b/stubs/fanstatic/METADATA.toml @@ -1,3 +1,3 @@ version = "1.7.*" -upstream_repository = "https://github.com/zopefoundation/fanstatic" +upstream-repository = "https://github.com/zopefoundation/fanstatic" dependencies = ["types-setuptools", "types-WebOb"] diff --git a/stubs/first/METADATA.toml b/stubs/first/METADATA.toml index 89a41730f1b2..3fe3d66bda4d 100644 --- a/stubs/first/METADATA.toml +++ b/stubs/first/METADATA.toml @@ -1,2 +1,2 @@ version = "2.0.*" -upstream_repository = "https://github.com/hynek/first" +upstream-repository = "https://github.com/hynek/first" diff --git a/stubs/flake8-bugbear/METADATA.toml b/stubs/flake8-bugbear/METADATA.toml index bf4cac0bccd7..f8d9fca3d6e9 100644 --- a/stubs/flake8-bugbear/METADATA.toml +++ b/stubs/flake8-bugbear/METADATA.toml @@ -1,2 +1,2 @@ version = "25.11.29" -upstream_repository = "https://github.com/PyCQA/flake8-bugbear" +upstream-repository = "https://github.com/PyCQA/flake8-bugbear" diff --git a/stubs/flake8-builtins/METADATA.toml b/stubs/flake8-builtins/METADATA.toml index 535f3a9270dd..5f4f23a38df6 100644 --- a/stubs/flake8-builtins/METADATA.toml +++ b/stubs/flake8-builtins/METADATA.toml @@ -1,3 +1,3 @@ version = "3.1.*" -upstream_repository = "https://github.com/gforcada/flake8-builtins" +upstream-repository = "https://github.com/gforcada/flake8-builtins" dependencies = ["types-flake8"] diff --git a/stubs/flake8-docstrings/METADATA.toml b/stubs/flake8-docstrings/METADATA.toml index 49902d8b7645..201a2cb77311 100644 --- a/stubs/flake8-docstrings/METADATA.toml +++ b/stubs/flake8-docstrings/METADATA.toml @@ -1,3 +1,3 @@ version = "1.7.*" -upstream_repository = "https://github.com/pycqa/flake8-docstrings" +upstream-repository = "https://github.com/pycqa/flake8-docstrings" dependencies = ["types-flake8"] diff --git a/stubs/flake8-rst-docstrings/METADATA.toml b/stubs/flake8-rst-docstrings/METADATA.toml index cb3a28ae98af..f8912d7c9e35 100644 --- a/stubs/flake8-rst-docstrings/METADATA.toml +++ b/stubs/flake8-rst-docstrings/METADATA.toml @@ -1,2 +1,2 @@ version = "0.4.*" -upstream_repository = "https://github.com/peterjc/flake8-rst-docstrings" +upstream-repository = "https://github.com/peterjc/flake8-rst-docstrings" diff --git a/stubs/flake8-simplify/METADATA.toml b/stubs/flake8-simplify/METADATA.toml index 55561890fd38..5ef28e476ab3 100644 --- a/stubs/flake8-simplify/METADATA.toml +++ b/stubs/flake8-simplify/METADATA.toml @@ -1,2 +1,2 @@ version = "0.30.*" -upstream_repository = "https://github.com/MartinThoma/flake8-simplify" +upstream-repository = "https://github.com/MartinThoma/flake8-simplify" diff --git a/stubs/flake8-typing-imports/METADATA.toml b/stubs/flake8-typing-imports/METADATA.toml index 735cd46f5175..77ede4ca1037 100644 --- a/stubs/flake8-typing-imports/METADATA.toml +++ b/stubs/flake8-typing-imports/METADATA.toml @@ -1,2 +1,2 @@ version = "1.17.*" -upstream_repository = "https://github.com/asottile/flake8-typing-imports" +upstream-repository = "https://github.com/asottile/flake8-typing-imports" diff --git a/stubs/flake8/METADATA.toml b/stubs/flake8/METADATA.toml index ea16f7dcbd87..7a39dcb38917 100644 --- a/stubs/flake8/METADATA.toml +++ b/stubs/flake8/METADATA.toml @@ -1,3 +1,3 @@ version = "7.3.*" -upstream_repository = "https://github.com/pycqa/flake8" +upstream-repository = "https://github.com/pycqa/flake8" dependencies = ["types-pyflakes"] diff --git a/stubs/fpdf2/METADATA.toml b/stubs/fpdf2/METADATA.toml index 5430aa884a0f..98fa4b298c86 100644 --- a/stubs/fpdf2/METADATA.toml +++ b/stubs/fpdf2/METADATA.toml @@ -1,7 +1,7 @@ version = "2.8.4" -upstream_repository = "https://github.com/py-pdf/fpdf2" +upstream-repository = "https://github.com/py-pdf/fpdf2" dependencies = ["Pillow>=10.3.0"] -obsolete_since = "2.8.6" # Released on 2026-02-19 +obsolete-since = "2.8.6" # Released on 2026-02-19 [tool.stubtest] -stubtest_dependencies = ["cryptography"] +stubtest-dependencies = ["cryptography"] diff --git a/stubs/gdb/METADATA.toml b/stubs/gdb/METADATA.toml index 876bec4ebb3b..5fcf687ea80b 100644 --- a/stubs/gdb/METADATA.toml +++ b/stubs/gdb/METADATA.toml @@ -1,8 +1,8 @@ version = "16.3.*" # This is the official web portal for the GDB Git repo, # see https://sourceware.org/gdb/current/ for other ways of obtaining the source code. -upstream_repository = "https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=tree" -extra_description = """\ +upstream-repository = "https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=tree" +extra-description = """\ Type hints for GDB's \ [Python API](https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html). \ Note that this API is available only when running Python scripts under GDB: \ @@ -12,5 +12,5 @@ extra_description = """\ [tool.stubtest] skip = true # https://github.com/python/typeshed/issues/15236 -ci_platforms = ["linux"] -apt_dependencies = ["gdb"] +ci-platforms = ["linux"] +apt-dependencies = ["gdb"] diff --git a/stubs/geopandas/METADATA.toml b/stubs/geopandas/METADATA.toml index 9c5da14baa22..8682d2664017 100644 --- a/stubs/geopandas/METADATA.toml +++ b/stubs/geopandas/METADATA.toml @@ -1,9 +1,9 @@ version = "1.1.3" # Requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20", "pandas-stubs", "types-shapely", "pyproj"] -upstream_repository = "https://github.com/geopandas/geopandas" +upstream-repository = "https://github.com/geopandas/geopandas" [tool.stubtest] # libproj-dev and proj-bin are required to build pyproj if wheels for the # target Python version are not available. -apt_dependencies = ["libproj-dev", "proj-bin"] +apt-dependencies = ["libproj-dev", "proj-bin"] diff --git a/stubs/gevent/METADATA.toml b/stubs/gevent/METADATA.toml index d85085828680..4a79551d0137 100644 --- a/stubs/gevent/METADATA.toml +++ b/stubs/gevent/METADATA.toml @@ -1,12 +1,12 @@ version = "25.9.*" -upstream_repository = "https://github.com/gevent/gevent" +upstream-repository = "https://github.com/gevent/gevent" dependencies = ["types-greenlet", "types-psutil>=7.2.0"] [tool.stubtest] # Run stubtest on all platforms, since there is some platform specific stuff # especially in the stdlib module replacement -ci_platforms = ["linux", "darwin", "win32"] +ci-platforms = ["linux", "darwin", "win32"] # for testing the ffi loop implementations on all platforms -stubtest_dependencies = ["cffi", "dnspython"] -apt_dependencies = ["libev4", "libev-dev", "libuv1", "libuv1-dev"] -brew_dependencies = ["libev", "libuv"] +stubtest-dependencies = ["cffi", "dnspython"] +apt-dependencies = ["libev4", "libev-dev", "libuv1", "libuv1-dev"] +brew-dependencies = ["libev", "libuv"] diff --git a/stubs/google-cloud-ndb/METADATA.toml b/stubs/google-cloud-ndb/METADATA.toml index 5b272480a460..fb13602f4b47 100644 --- a/stubs/google-cloud-ndb/METADATA.toml +++ b/stubs/google-cloud-ndb/METADATA.toml @@ -1,6 +1,6 @@ version = "2.4.*" -upstream_repository = "https://github.com/googleapis/python-ndb" -partial_stub = true +upstream-repository = "https://github.com/googleapis/python-ndb" +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true diff --git a/stubs/greenlet/METADATA.toml b/stubs/greenlet/METADATA.toml index c1978835e4eb..ef723e1f3c65 100644 --- a/stubs/greenlet/METADATA.toml +++ b/stubs/greenlet/METADATA.toml @@ -1,2 +1,2 @@ version = "3.3.*" -upstream_repository = "https://github.com/python-greenlet/greenlet" +upstream-repository = "https://github.com/python-greenlet/greenlet" diff --git a/stubs/grpcio-channelz/METADATA.toml b/stubs/grpcio-channelz/METADATA.toml index 035665f7518e..b12e58c39175 100644 --- a/stubs/grpcio-channelz/METADATA.toml +++ b/stubs/grpcio-channelz/METADATA.toml @@ -1,3 +1,3 @@ version = "1.*" -upstream_repository = "https://github.com/grpc/grpc" +upstream-repository = "https://github.com/grpc/grpc" dependencies = ["types-grpcio", "types-protobuf"] diff --git a/stubs/grpcio-health-checking/METADATA.toml b/stubs/grpcio-health-checking/METADATA.toml index 035665f7518e..b12e58c39175 100644 --- a/stubs/grpcio-health-checking/METADATA.toml +++ b/stubs/grpcio-health-checking/METADATA.toml @@ -1,3 +1,3 @@ version = "1.*" -upstream_repository = "https://github.com/grpc/grpc" +upstream-repository = "https://github.com/grpc/grpc" dependencies = ["types-grpcio", "types-protobuf"] diff --git a/stubs/grpcio-reflection/METADATA.toml b/stubs/grpcio-reflection/METADATA.toml index 035665f7518e..b12e58c39175 100644 --- a/stubs/grpcio-reflection/METADATA.toml +++ b/stubs/grpcio-reflection/METADATA.toml @@ -1,3 +1,3 @@ version = "1.*" -upstream_repository = "https://github.com/grpc/grpc" +upstream-repository = "https://github.com/grpc/grpc" dependencies = ["types-grpcio", "types-protobuf"] diff --git a/stubs/grpcio-status/METADATA.toml b/stubs/grpcio-status/METADATA.toml index 3b05e70a7154..3591441645d2 100644 --- a/stubs/grpcio-status/METADATA.toml +++ b/stubs/grpcio-status/METADATA.toml @@ -1,3 +1,3 @@ version = "1.*" -upstream_repository = "https://github.com/grpc/grpc" +upstream-repository = "https://github.com/grpc/grpc" dependencies = ["types-grpcio"] diff --git a/stubs/grpcio/METADATA.toml b/stubs/grpcio/METADATA.toml index b81a42967303..29fdcfc493d8 100644 --- a/stubs/grpcio/METADATA.toml +++ b/stubs/grpcio/METADATA.toml @@ -1,6 +1,6 @@ version = "1.*" -upstream_repository = "https://github.com/grpc/grpc" -partial_stub = true +upstream-repository = "https://github.com/grpc/grpc" +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true diff --git a/stubs/gunicorn/METADATA.toml b/stubs/gunicorn/METADATA.toml index 7b371da44439..6f6a8c4a4ed8 100644 --- a/stubs/gunicorn/METADATA.toml +++ b/stubs/gunicorn/METADATA.toml @@ -1,8 +1,8 @@ version = "25.3.0" -upstream_repository = "https://github.com/benoitc/gunicorn" +upstream-repository = "https://github.com/benoitc/gunicorn" dependencies = ["types-gevent"] [tool.stubtest] -supported_platforms = ["linux", "darwin"] -ci_platforms = ["linux", "darwin"] -stubtest_dependencies = ["gevent>=1.4.0", "eventlet>=0.24.1,!=0.36.0", "tornado>=0.2", "setproctitle", "PasteDeploy", "inotify"] +supported-platforms = ["linux", "darwin"] +ci-platforms = ["linux", "darwin"] +stubtest-dependencies = ["gevent>=1.4.0", "eventlet>=0.24.1,!=0.36.0", "tornado>=0.2", "setproctitle", "PasteDeploy", "inotify"] diff --git a/stubs/hdbcli/METADATA.toml b/stubs/hdbcli/METADATA.toml index 168d2786a79a..844c9ace86f2 100644 --- a/stubs/hdbcli/METADATA.toml +++ b/stubs/hdbcli/METADATA.toml @@ -1,2 +1,2 @@ version = "2.25.*" -# upstream_repository = closed-source +# upstream-repository = closed-source diff --git a/stubs/hnswlib/METADATA.toml b/stubs/hnswlib/METADATA.toml index e7590f5978df..f9dfc34c413b 100644 --- a/stubs/hnswlib/METADATA.toml +++ b/stubs/hnswlib/METADATA.toml @@ -1,4 +1,4 @@ version = "0.8.*" # Requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.21"] -upstream_repository = "https://github.com/nmslib/hnswlib" +upstream-repository = "https://github.com/nmslib/hnswlib" diff --git a/stubs/html5lib/METADATA.toml b/stubs/html5lib/METADATA.toml index 3c440b24903c..7049e9bd2e85 100644 --- a/stubs/html5lib/METADATA.toml +++ b/stubs/html5lib/METADATA.toml @@ -1,5 +1,5 @@ version = "1.1.*" -upstream_repository = "https://github.com/html5lib/html5lib-python" +upstream-repository = "https://github.com/html5lib/html5lib-python" dependencies = ["types-webencodings"] [tool.stubtest] diff --git a/stubs/httplib2/METADATA.toml b/stubs/httplib2/METADATA.toml index 4f87a1df0258..bca46d69b832 100644 --- a/stubs/httplib2/METADATA.toml +++ b/stubs/httplib2/METADATA.toml @@ -1,2 +1,2 @@ version = "0.31.2" -upstream_repository = "https://github.com/httplib2/httplib2" +upstream-repository = "https://github.com/httplib2/httplib2" diff --git a/stubs/hvac/METADATA.toml b/stubs/hvac/METADATA.toml index 01a67aa877ea..d8318cf01487 100644 --- a/stubs/hvac/METADATA.toml +++ b/stubs/hvac/METADATA.toml @@ -1,3 +1,3 @@ version = "2.4.*" -upstream_repository = "https://github.com/hvac/hvac" +upstream-repository = "https://github.com/hvac/hvac" dependencies = ["types-requests"] diff --git a/stubs/ibm-db/METADATA.toml b/stubs/ibm-db/METADATA.toml index e754728c4eb2..2c5e4b2ed065 100644 --- a/stubs/ibm-db/METADATA.toml +++ b/stubs/ibm-db/METADATA.toml @@ -1,2 +1,2 @@ version = "3.2.8" -upstream_repository = "https://github.com/ibmdb/python-ibmdb" +upstream-repository = "https://github.com/ibmdb/python-ibmdb" diff --git a/stubs/icalendar/METADATA.toml b/stubs/icalendar/METADATA.toml index 0df94ecd99f3..a530386b862a 100644 --- a/stubs/icalendar/METADATA.toml +++ b/stubs/icalendar/METADATA.toml @@ -1,7 +1,7 @@ version = "6.3.2" -upstream_repository = "https://github.com/collective/icalendar" +upstream-repository = "https://github.com/collective/icalendar" dependencies = ["types-python-dateutil", "types-pytz"] -obsolete_since = "7.0.0" # Released on 2026-02-11 +obsolete-since = "7.0.0" # Released on 2026-02-11 [tool.stubtest] -stubtest_dependencies = ["pytz"] +stubtest-dependencies = ["pytz"] diff --git a/stubs/inifile/METADATA.toml b/stubs/inifile/METADATA.toml index ff2e16bd47fd..5532296509e6 100644 --- a/stubs/inifile/METADATA.toml +++ b/stubs/inifile/METADATA.toml @@ -1,2 +1,2 @@ version = "0.4.*" -upstream_repository = "https://github.com/mitsuhiko/python-inifile" +upstream-repository = "https://github.com/mitsuhiko/python-inifile" diff --git a/stubs/jmespath/METADATA.toml b/stubs/jmespath/METADATA.toml index 1224477c0862..856988fbacb3 100644 --- a/stubs/jmespath/METADATA.toml +++ b/stubs/jmespath/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/jmespath/jmespath.py" +upstream-repository = "https://github.com/jmespath/jmespath.py" diff --git a/stubs/jsonnet/METADATA.toml b/stubs/jsonnet/METADATA.toml index 504213fad115..60c7cdd7f4e4 100644 --- a/stubs/jsonnet/METADATA.toml +++ b/stubs/jsonnet/METADATA.toml @@ -1,2 +1,2 @@ version = "0.22.*" -upstream_repository = "https://github.com/google/jsonnet" +upstream-repository = "https://github.com/google/jsonnet" diff --git a/stubs/jsonschema/METADATA.toml b/stubs/jsonschema/METADATA.toml index 27bbebfc47df..a9b3778d2826 100644 --- a/stubs/jsonschema/METADATA.toml +++ b/stubs/jsonschema/METADATA.toml @@ -1,5 +1,5 @@ version = "~=4.26.0" -upstream_repository = "https://github.com/python-jsonschema/jsonschema" +upstream-repository = "https://github.com/python-jsonschema/jsonschema" dependencies = ["referencing"] [tool.stubtest] diff --git a/stubs/jwcrypto/METADATA.toml b/stubs/jwcrypto/METADATA.toml index c16192e558a3..23581644c4be 100644 --- a/stubs/jwcrypto/METADATA.toml +++ b/stubs/jwcrypto/METADATA.toml @@ -1,3 +1,3 @@ version = "1.5.*" -upstream_repository = "https://github.com/latchset/jwcrypto" +upstream-repository = "https://github.com/latchset/jwcrypto" dependencies = ["cryptography"] diff --git a/stubs/keyboard/METADATA.toml b/stubs/keyboard/METADATA.toml index 6a2335fd9e45..cda767908896 100644 --- a/stubs/keyboard/METADATA.toml +++ b/stubs/keyboard/METADATA.toml @@ -1,9 +1,9 @@ version = "0.13.*" -upstream_repository = "https://github.com/boppreh/keyboard" +upstream-repository = "https://github.com/boppreh/keyboard" # [tool.stubtest] # While the stubs slightly differ on Windows vs Linux. # It's only by possible mouse buttons and event literal types. # As well as returning a tuple of int/long from keyboard.mouse.get_position # The "mouse" module is obsoleted by the "mouse" package. -# ci_platforms = ["linux"] +# ci-platforms = ["linux"] diff --git a/stubs/ldap3/METADATA.toml b/stubs/ldap3/METADATA.toml index 852ae307ae31..d50ccbe8478f 100644 --- a/stubs/ldap3/METADATA.toml +++ b/stubs/ldap3/METADATA.toml @@ -1,10 +1,10 @@ version = "2.9.*" -upstream_repository = "https://github.com/cannatag/ldap3" +upstream-repository = "https://github.com/cannatag/ldap3" dependencies = ["types-pyasn1"] [tool.stubtest] -apt_dependencies = ["libkrb5-dev"] +apt-dependencies = ["libkrb5-dev"] # No need to install on the CI. Leaving here as information for MacOs/Windows contributors. -# brew_dependencies = ["krb5"] -# choco_dependencies = ["mitkerberos"] -stubtest_dependencies = ["gssapi"] +# brew-dependencies = ["krb5"] +# choco-dependencies = ["mitkerberos"] +stubtest-dependencies = ["gssapi"] diff --git a/stubs/lunardate/METADATA.toml b/stubs/lunardate/METADATA.toml index aa8196792bf8..eefcfee41691 100644 --- a/stubs/lunardate/METADATA.toml +++ b/stubs/lunardate/METADATA.toml @@ -1,2 +1,2 @@ version = "0.2.*" -upstream_repository = "https://github.com/lidaobing/python-lunardate" +upstream-repository = "https://github.com/lidaobing/python-lunardate" diff --git a/stubs/lupa/METADATA.toml b/stubs/lupa/METADATA.toml index b82a8453e4c1..7867a8a93236 100644 --- a/stubs/lupa/METADATA.toml +++ b/stubs/lupa/METADATA.toml @@ -1,2 +1,2 @@ version = "2.6.*" -upstream_repository = "https://github.com/scoder/lupa" +upstream-repository = "https://github.com/scoder/lupa" diff --git a/stubs/lzstring/METADATA.toml b/stubs/lzstring/METADATA.toml index 01227b100e7a..22e4f392e123 100644 --- a/stubs/lzstring/METADATA.toml +++ b/stubs/lzstring/METADATA.toml @@ -1,2 +1,2 @@ version = "1.0.*" -upstream_repository = "https://github.com/gkovacs/lz-string-python" +upstream-repository = "https://github.com/gkovacs/lz-string-python" diff --git a/stubs/m3u8/METADATA.toml b/stubs/m3u8/METADATA.toml index 7dbe6dbefabc..eb4c10a4f5cc 100644 --- a/stubs/m3u8/METADATA.toml +++ b/stubs/m3u8/METADATA.toml @@ -1,2 +1,2 @@ version = "6.0.*" -upstream_repository = "https://github.com/globocom/m3u8" +upstream-repository = "https://github.com/globocom/m3u8" diff --git a/stubs/mock/METADATA.toml b/stubs/mock/METADATA.toml index 84a697269e35..1436f5662373 100644 --- a/stubs/mock/METADATA.toml +++ b/stubs/mock/METADATA.toml @@ -1,2 +1,2 @@ version = "5.2.*" -upstream_repository = "https://github.com/testing-cabal/mock" +upstream-repository = "https://github.com/testing-cabal/mock" diff --git a/stubs/mypy-extensions/METADATA.toml b/stubs/mypy-extensions/METADATA.toml index 7d329474c424..33583f5d725b 100644 --- a/stubs/mypy-extensions/METADATA.toml +++ b/stubs/mypy-extensions/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/python/mypy_extensions" +upstream-repository = "https://github.com/python/mypy_extensions" diff --git a/stubs/mysqlclient/METADATA.toml b/stubs/mysqlclient/METADATA.toml index f3c466ea9a05..0d734f1277b1 100644 --- a/stubs/mysqlclient/METADATA.toml +++ b/stubs/mysqlclient/METADATA.toml @@ -1,5 +1,5 @@ version = "2.2.*" -upstream_repository = "https://github.com/PyMySQL/mysqlclient" +upstream-repository = "https://github.com/PyMySQL/mysqlclient" [tool.stubtest] -apt_dependencies = ["libmariadb-dev"] +apt-dependencies = ["libmariadb-dev"] diff --git a/stubs/nanoid/METADATA.toml b/stubs/nanoid/METADATA.toml index c0eb7f7b40ca..d2d220486c31 100644 --- a/stubs/nanoid/METADATA.toml +++ b/stubs/nanoid/METADATA.toml @@ -1,2 +1,2 @@ version = "2.0.0" -upstream_repository = "https://github.com/puyuan/py-nanoid" +upstream-repository = "https://github.com/puyuan/py-nanoid" diff --git a/stubs/nanoleafapi/METADATA.toml b/stubs/nanoleafapi/METADATA.toml index 4d240e218e47..4f4332fcd18c 100644 --- a/stubs/nanoleafapi/METADATA.toml +++ b/stubs/nanoleafapi/METADATA.toml @@ -1,2 +1,2 @@ version = "2.1.*" -upstream_repository = "https://github.com/MylesMor/nanoleafapi" +upstream-repository = "https://github.com/MylesMor/nanoleafapi" diff --git a/stubs/netaddr/METADATA.toml b/stubs/netaddr/METADATA.toml index 770e9a0b2112..fbb5fc4b2ac0 100644 --- a/stubs/netaddr/METADATA.toml +++ b/stubs/netaddr/METADATA.toml @@ -1,2 +1,2 @@ version = "1.3.*" -upstream_repository = "https://github.com/netaddr/netaddr" +upstream-repository = "https://github.com/netaddr/netaddr" diff --git a/stubs/netifaces/METADATA.toml b/stubs/netifaces/METADATA.toml index dadf1becdf8d..a6a6a2608f55 100644 --- a/stubs/netifaces/METADATA.toml +++ b/stubs/netifaces/METADATA.toml @@ -1,2 +1,2 @@ version = "0.11.*" -upstream_repository = "https://github.com/al45tair/netifaces" +upstream-repository = "https://github.com/al45tair/netifaces" diff --git a/stubs/networkx/METADATA.toml b/stubs/networkx/METADATA.toml index 91999898ece9..80c1685dcf49 100644 --- a/stubs/networkx/METADATA.toml +++ b/stubs/networkx/METADATA.toml @@ -1,8 +1,8 @@ version = "3.6.1" -upstream_repository = "https://github.com/networkx/networkx" +upstream-repository = "https://github.com/networkx/networkx" # requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20"] [tool.stubtest] # stub_uploader won't allow pandas-stubs in the requires field https://github.com/typeshed-internal/stub_uploader/issues/90 -stubtest_dependencies = ["pandas"] +stubtest-dependencies = ["pandas"] diff --git a/stubs/networkx/networkx/utils/configs.pyi b/stubs/networkx/networkx/utils/configs.pyi index 780ccf7233a2..b9206c9ace09 100644 --- a/stubs/networkx/networkx/utils/configs.pyi +++ b/stubs/networkx/networkx/utils/configs.pyi @@ -7,7 +7,7 @@ from typing_extensions import Self __all__ = ["Config"] -# TODO: Our pyright test doesn't understand `requires_python` in METADATA.toml +# TODO: Our pyright test doesn't understand `requires-python` in METADATA.toml # https://github.com/python/typeshed/issues/14025 if sys.version_info >= (3, 10): @dataclass(init=False, eq=False, slots=True, kw_only=True, match_args=False) diff --git a/stubs/oauthlib/METADATA.toml b/stubs/oauthlib/METADATA.toml index dcc24fcec5c9..6b2d25dc6222 100644 --- a/stubs/oauthlib/METADATA.toml +++ b/stubs/oauthlib/METADATA.toml @@ -1,2 +1,2 @@ version = "3.3.*" -upstream_repository = "https://github.com/oauthlib/oauthlib" +upstream-repository = "https://github.com/oauthlib/oauthlib" diff --git a/stubs/objgraph/METADATA.toml b/stubs/objgraph/METADATA.toml index 2ea5dba9e6f4..5ed5672fc501 100644 --- a/stubs/objgraph/METADATA.toml +++ b/stubs/objgraph/METADATA.toml @@ -1,2 +1,2 @@ version = "3.6.*" -upstream_repository = "https://github.com/mgedmin/objgraph" +upstream-repository = "https://github.com/mgedmin/objgraph" diff --git a/stubs/olefile/METADATA.toml b/stubs/olefile/METADATA.toml index 3789bd8a2ec8..63c57f41365d 100644 --- a/stubs/olefile/METADATA.toml +++ b/stubs/olefile/METADATA.toml @@ -1,2 +1,2 @@ version = "0.47.*" -upstream_repository = "https://github.com/decalage2/olefile" +upstream-repository = "https://github.com/decalage2/olefile" diff --git a/stubs/openpyxl/METADATA.toml b/stubs/openpyxl/METADATA.toml index 1edc2adc4fcb..076eb0ab762f 100644 --- a/stubs/openpyxl/METADATA.toml +++ b/stubs/openpyxl/METADATA.toml @@ -1,2 +1,2 @@ version = "3.1.5" -upstream_repository = "https://foss.heptapod.net/openpyxl/openpyxl" +upstream-repository = "https://foss.heptapod.net/openpyxl/openpyxl" diff --git a/stubs/opentracing/METADATA.toml b/stubs/opentracing/METADATA.toml index 80a499c5b6a3..110d9ccd1660 100644 --- a/stubs/opentracing/METADATA.toml +++ b/stubs/opentracing/METADATA.toml @@ -1,2 +1,2 @@ version = "2.4.*" -upstream_repository = "https://github.com/opentracing/opentracing-python" +upstream-repository = "https://github.com/opentracing/opentracing-python" diff --git a/stubs/paramiko/METADATA.toml b/stubs/paramiko/METADATA.toml index 3eef7ec9624c..c8dd52bb39f4 100644 --- a/stubs/paramiko/METADATA.toml +++ b/stubs/paramiko/METADATA.toml @@ -1,8 +1,8 @@ version = "4.0.*" -upstream_repository = "https://github.com/paramiko/paramiko" +upstream-repository = "https://github.com/paramiko/paramiko" # Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic dependencies = ["cryptography>=37.0.0"] [tool.stubtest] # linux and darwin are equivalent -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/parsimonious/METADATA.toml b/stubs/parsimonious/METADATA.toml index 8d2d5ca5fe07..4cd095524d0e 100644 --- a/stubs/parsimonious/METADATA.toml +++ b/stubs/parsimonious/METADATA.toml @@ -1,2 +1,2 @@ version = "0.11.*" -upstream_repository = "https://github.com/erikrose/parsimonious" +upstream-repository = "https://github.com/erikrose/parsimonious" diff --git a/stubs/passpy/METADATA.toml b/stubs/passpy/METADATA.toml index 106c6bf5e359..e72164f1cb04 100644 --- a/stubs/passpy/METADATA.toml +++ b/stubs/passpy/METADATA.toml @@ -1,2 +1,2 @@ version = "1.0.*" -upstream_repository = "https://github.com/bfrascher/passpy" +upstream-repository = "https://github.com/bfrascher/passpy" diff --git a/stubs/peewee/METADATA.toml b/stubs/peewee/METADATA.toml index 2da90bfbf708..f97c0bd4732b 100644 --- a/stubs/peewee/METADATA.toml +++ b/stubs/peewee/METADATA.toml @@ -1,10 +1,10 @@ version = "4.0.0" -upstream_repository = "https://github.com/coleifer/peewee" +upstream-repository = "https://github.com/coleifer/peewee" # We're not providing stubs for all playhouse modules right now # https://github.com/python/typeshed/pull/11731#issuecomment-2065729058 -partial_stub = true +partial-stub = true [tool.stubtest] -stubtest_dependencies = ["Flask>=2.0.0"] +stubtest-dependencies = ["Flask>=2.0.0"] # Using stubtest_allowlist to ignore playhouse modules we don't provide. -ignore_missing_stub = false +ignore-missing-stub = false diff --git a/stubs/pep8-naming/METADATA.toml b/stubs/pep8-naming/METADATA.toml index 7f9d2dc3ec32..3b73248f1786 100644 --- a/stubs/pep8-naming/METADATA.toml +++ b/stubs/pep8-naming/METADATA.toml @@ -1,2 +1,2 @@ version = "0.15.*" -upstream_repository = "https://github.com/PyCQA/pep8-naming" +upstream-repository = "https://github.com/PyCQA/pep8-naming" diff --git a/stubs/pexpect/METADATA.toml b/stubs/pexpect/METADATA.toml index 1cc4d2731df2..6e7cab5fa1ad 100644 --- a/stubs/pexpect/METADATA.toml +++ b/stubs/pexpect/METADATA.toml @@ -1,2 +1,2 @@ version = "4.9.*" -upstream_repository = "https://github.com/pexpect/pexpect" +upstream-repository = "https://github.com/pexpect/pexpect" diff --git a/stubs/pika/METADATA.toml b/stubs/pika/METADATA.toml index 1613f073e5fe..a8d7d10908ab 100644 --- a/stubs/pika/METADATA.toml +++ b/stubs/pika/METADATA.toml @@ -1,10 +1,10 @@ version = "1.3.*" -upstream_repository = "https://github.com/pika/pika" -stub_distribution = "types-pika-ts" # https://github.com/python/typeshed/issues/9246 -extra_description = """\ +upstream-repository = "https://github.com/pika/pika" +stub-distribution = "types-pika-ts" # https://github.com/python/typeshed/issues/9246 +extra-description = """\ The `types-pika` package contains alternate, more complete type stubs, that \ are maintained outside of typeshed.\ """ [tool.stubtest] -stubtest_dependencies = ["gevent", "tornado", "twisted"] +stubtest-dependencies = ["gevent", "tornado", "twisted"] diff --git a/stubs/polib/METADATA.toml b/stubs/polib/METADATA.toml index 5b7355447c2d..959b3806d798 100644 --- a/stubs/polib/METADATA.toml +++ b/stubs/polib/METADATA.toml @@ -1,2 +1,2 @@ version = "1.2.*" -upstream_repository = "https://github.com/izimobil/polib" +upstream-repository = "https://github.com/izimobil/polib" diff --git a/stubs/pony/METADATA.toml b/stubs/pony/METADATA.toml index 9311beea1d43..a5975306faa8 100644 --- a/stubs/pony/METADATA.toml +++ b/stubs/pony/METADATA.toml @@ -1,3 +1,3 @@ version = "0.7.*" -upstream_repository = "https://github.com/ponyorm/pony" +upstream-repository = "https://github.com/ponyorm/pony" dependencies = ["types-psycopg2", "types-PyMySQL"] diff --git a/stubs/portpicker/METADATA.toml b/stubs/portpicker/METADATA.toml index 626dbf6c4518..17d27f8a5e10 100644 --- a/stubs/portpicker/METADATA.toml +++ b/stubs/portpicker/METADATA.toml @@ -1,2 +1,2 @@ version = "1.6.*" -upstream_repository = "https://github.com/google/python_portpicker" +upstream-repository = "https://github.com/google/python_portpicker" diff --git a/stubs/protobuf/METADATA.toml b/stubs/protobuf/METADATA.toml index a7ab66eace44..78387ac33475 100644 --- a/stubs/protobuf/METADATA.toml +++ b/stubs/protobuf/METADATA.toml @@ -1,9 +1,9 @@ # Using an exact number in the specifier for scripts/sync_protobuf/google_protobuf.py # When updating, also re-run the script version = "~=7.34.1" -upstream_repository = "https://github.com/protocolbuffers/protobuf" -extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 34.1 on [protobuf v34.1](https://github.com/protocolbuffers/protobuf/releases/tag/v34.1) (python `protobuf==7.34.1`)." -partial_stub = true +upstream-repository = "https://github.com/protocolbuffers/protobuf" +extra-description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 34.1 on [protobuf v34.1](https://github.com/protocolbuffers/protobuf/releases/tag/v34.1) (python `protobuf==7.34.1`)." +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true diff --git a/stubs/psutil/METADATA.toml b/stubs/psutil/METADATA.toml index e09e37981e46..4700066c4768 100644 --- a/stubs/psutil/METADATA.toml +++ b/stubs/psutil/METADATA.toml @@ -1,5 +1,5 @@ version = "7.2.2" -upstream_repository = "https://github.com/giampaolo/psutil" +upstream-repository = "https://github.com/giampaolo/psutil" [tool.stubtest] -ci_platforms = ["darwin", "linux", "win32"] +ci-platforms = ["darwin", "linux", "win32"] diff --git a/stubs/psycopg2/METADATA.toml b/stubs/psycopg2/METADATA.toml index 0a5a3e73adda..5d8e21b66912 100644 --- a/stubs/psycopg2/METADATA.toml +++ b/stubs/psycopg2/METADATA.toml @@ -1,3 +1,3 @@ version = "2.9.11" -upstream_repository = "https://github.com/psycopg/psycopg2" -partial_stub = false +upstream-repository = "https://github.com/psycopg/psycopg2" +partial-stub = false diff --git a/stubs/punq/METADATA.toml b/stubs/punq/METADATA.toml index 99e472d4bbd4..f29f602eea39 100644 --- a/stubs/punq/METADATA.toml +++ b/stubs/punq/METADATA.toml @@ -1,4 +1,4 @@ version = "0.7.*" -upstream_repository = "https://github.com/bobthemighty/punq" +upstream-repository = "https://github.com/bobthemighty/punq" [tool.stubtest] diff --git a/stubs/pyasn1/METADATA.toml b/stubs/pyasn1/METADATA.toml index 2fa96d4bc8c5..c9d5651dfeeb 100644 --- a/stubs/pyasn1/METADATA.toml +++ b/stubs/pyasn1/METADATA.toml @@ -1,2 +1,2 @@ version = "0.6.*" -upstream_repository = "https://github.com/pyasn1/pyasn1" +upstream-repository = "https://github.com/pyasn1/pyasn1" diff --git a/stubs/pyaudio/METADATA.toml b/stubs/pyaudio/METADATA.toml index d05035bf5989..29a84c09f459 100644 --- a/stubs/pyaudio/METADATA.toml +++ b/stubs/pyaudio/METADATA.toml @@ -1,9 +1,9 @@ version = "0.2.*" # There is no web portal for the source, this is the official source link: -# upstream_repository = "https://people.csail.mit.edu/hubert/pyaudio/#sources" +# upstream-repository = "https://people.csail.mit.edu/hubert/pyaudio/#sources" [tool.stubtest] # linux and win32 are equivalent -ci_platforms = ["darwin", "linux"] -apt_dependencies = ["portaudio19-dev"] -brew_dependencies = ["portaudio"] +ci-platforms = ["darwin", "linux"] +apt-dependencies = ["portaudio19-dev"] +brew-dependencies = ["portaudio"] diff --git a/stubs/pycocotools/METADATA.toml b/stubs/pycocotools/METADATA.toml index cb8e8b6f5067..672320ca392c 100644 --- a/stubs/pycocotools/METADATA.toml +++ b/stubs/pycocotools/METADATA.toml @@ -1,3 +1,3 @@ version = "2.0.*" -upstream_repository = "https://github.com/ppwwyyxx/cocoapi" +upstream-repository = "https://github.com/ppwwyyxx/cocoapi" dependencies = ["numpy>=2.0.0rc1"] diff --git a/stubs/pycurl/METADATA.toml b/stubs/pycurl/METADATA.toml index 8d6e2d58ebb3..24000bcfb731 100644 --- a/stubs/pycurl/METADATA.toml +++ b/stubs/pycurl/METADATA.toml @@ -1,5 +1,5 @@ version = "7.45.7" -upstream_repository = "https://github.com/pycurl/pycurl" +upstream-repository = "https://github.com/pycurl/pycurl" [tool.stubtest] -ci_platforms = ["darwin", "linux", "win32"] +ci-platforms = ["darwin", "linux", "win32"] diff --git a/stubs/pyfarmhash/METADATA.toml b/stubs/pyfarmhash/METADATA.toml index 8762bdc0e304..3160c1245acf 100644 --- a/stubs/pyfarmhash/METADATA.toml +++ b/stubs/pyfarmhash/METADATA.toml @@ -1,2 +1,2 @@ version = "0.4.*" -upstream_repository = "https://github.com/veelion/python-farmhash" +upstream-repository = "https://github.com/veelion/python-farmhash" diff --git a/stubs/pyflakes/METADATA.toml b/stubs/pyflakes/METADATA.toml index 6c88c0c0ec41..4619a579594b 100644 --- a/stubs/pyflakes/METADATA.toml +++ b/stubs/pyflakes/METADATA.toml @@ -1,2 +1,2 @@ version = "3.4.*" -upstream_repository = "https://github.com/PyCQA/pyflakes" +upstream-repository = "https://github.com/PyCQA/pyflakes" diff --git a/stubs/pyinstaller/METADATA.toml b/stubs/pyinstaller/METADATA.toml index 2da8e52679a8..f1aaecd52ed7 100644 --- a/stubs/pyinstaller/METADATA.toml +++ b/stubs/pyinstaller/METADATA.toml @@ -1,2 +1,2 @@ version = "6.19.*" -upstream_repository = "https://github.com/pyinstaller/pyinstaller" +upstream-repository = "https://github.com/pyinstaller/pyinstaller" diff --git a/stubs/pyjks/METADATA.toml b/stubs/pyjks/METADATA.toml index 7697fa4ae7ad..20eeae1e0c06 100644 --- a/stubs/pyjks/METADATA.toml +++ b/stubs/pyjks/METADATA.toml @@ -1,3 +1,3 @@ version = "20.0.*" -upstream_repository = "https://github.com/kurtbrose/pyjks" +upstream-repository = "https://github.com/kurtbrose/pyjks" dependencies = ["types-pyasn1"] diff --git a/stubs/pyluach/METADATA.toml b/stubs/pyluach/METADATA.toml index 172f950ccedc..102e7dfd01db 100644 --- a/stubs/pyluach/METADATA.toml +++ b/stubs/pyluach/METADATA.toml @@ -1,2 +1,2 @@ version = "2.3.*" -upstream_repository = "https://github.com/simlist/pyluach" +upstream-repository = "https://github.com/simlist/pyluach" diff --git a/stubs/pynput/METADATA.toml b/stubs/pynput/METADATA.toml index ef8d6c438859..66307d3bc98e 100644 --- a/stubs/pynput/METADATA.toml +++ b/stubs/pynput/METADATA.toml @@ -1,5 +1,5 @@ version = "~=1.8.1" -upstream_repository = "https://github.com/moses-palmer/pynput" +upstream-repository = "https://github.com/moses-palmer/pynput" [tool.stubtest] -ci_platforms = ["darwin", "linux", "win32"] +ci-platforms = ["darwin", "linux", "win32"] diff --git a/stubs/pyperclip/METADATA.toml b/stubs/pyperclip/METADATA.toml index 9e2c211f627d..a2f5db7c354d 100644 --- a/stubs/pyperclip/METADATA.toml +++ b/stubs/pyperclip/METADATA.toml @@ -1,6 +1,6 @@ version = "1.11.*" -upstream_repository = "https://github.com/asweigart/pyperclip" +upstream-repository = "https://github.com/asweigart/pyperclip" [tool.stubtest] -ci_platforms = ["win32", "linux", "darwin"] -apt_dependencies = ["xclip"] +ci-platforms = ["win32", "linux", "darwin"] +apt-dependencies = ["xclip"] diff --git a/stubs/pyserial/METADATA.toml b/stubs/pyserial/METADATA.toml index effb2598ba68..3726b119da44 100644 --- a/stubs/pyserial/METADATA.toml +++ b/stubs/pyserial/METADATA.toml @@ -1,6 +1,6 @@ version = "3.5.*" -upstream_repository = "https://github.com/pyserial/pyserial" +upstream-repository = "https://github.com/pyserial/pyserial" [tool.stubtest] -ci_platforms = ["darwin", "linux", "win32"] +ci-platforms = ["darwin", "linux", "win32"] extras = ["cp2110"] diff --git a/stubs/pysftp/METADATA.toml b/stubs/pysftp/METADATA.toml index 1f9f89e66f0c..7088c729d7c6 100644 --- a/stubs/pysftp/METADATA.toml +++ b/stubs/pysftp/METADATA.toml @@ -1,6 +1,6 @@ version = "0.2.*" -upstream_repository = "https://bitbucket.org/dundeemt/pysftp" +upstream-repository = "https://bitbucket.org/dundeemt/pysftp" dependencies = ["types-paramiko"] [tool.stubtest] -stubtest_dependencies = ["paramiko~=3.0"] +stubtest-dependencies = ["paramiko~=3.0"] diff --git a/stubs/pytest-lazy-fixture/METADATA.toml b/stubs/pytest-lazy-fixture/METADATA.toml index 68ac0cb52446..60f7b81673f3 100644 --- a/stubs/pytest-lazy-fixture/METADATA.toml +++ b/stubs/pytest-lazy-fixture/METADATA.toml @@ -1,2 +1,2 @@ version = "0.6.*" -upstream_repository = "https://github.com/tvorog/pytest-lazy-fixture" +upstream-repository = "https://github.com/tvorog/pytest-lazy-fixture" diff --git a/stubs/python-crontab/METADATA.toml b/stubs/python-crontab/METADATA.toml index 07cee733e11c..6a47d346981a 100644 --- a/stubs/python-crontab/METADATA.toml +++ b/stubs/python-crontab/METADATA.toml @@ -1,3 +1,3 @@ version = "3.3.*" -upstream_repository = "https://gitlab.com/doctormo/python-crontab" +upstream-repository = "https://gitlab.com/doctormo/python-crontab" dependencies = ["types-croniter"] diff --git a/stubs/python-dateutil/METADATA.toml b/stubs/python-dateutil/METADATA.toml index 9aa35b672cc2..995b1aa6aa82 100644 --- a/stubs/python-dateutil/METADATA.toml +++ b/stubs/python-dateutil/METADATA.toml @@ -1,2 +1,2 @@ version = "2.9.*" -upstream_repository = "https://github.com/dateutil/dateutil" +upstream-repository = "https://github.com/dateutil/dateutil" diff --git a/stubs/python-http-client/METADATA.toml b/stubs/python-http-client/METADATA.toml index 73ce01ef67e7..f93b0770d472 100644 --- a/stubs/python-http-client/METADATA.toml +++ b/stubs/python-http-client/METADATA.toml @@ -1,2 +1,2 @@ version = "3.3.7" -upstream_repository = "https://github.com/sendgrid/python-http-client" +upstream-repository = "https://github.com/sendgrid/python-http-client" diff --git a/stubs/python-jenkins/METADATA.toml b/stubs/python-jenkins/METADATA.toml index 4155f4773dfa..c7623bffe1df 100644 --- a/stubs/python-jenkins/METADATA.toml +++ b/stubs/python-jenkins/METADATA.toml @@ -1,3 +1,3 @@ version = "~=1.8.3" -upstream_repository = "https://opendev.org/jjb/python-jenkins" +upstream-repository = "https://opendev.org/jjb/python-jenkins" dependencies = ["types-requests"] diff --git a/stubs/python-jose/METADATA.toml b/stubs/python-jose/METADATA.toml index 2ef8060c3859..5248bfa71dfb 100644 --- a/stubs/python-jose/METADATA.toml +++ b/stubs/python-jose/METADATA.toml @@ -1,3 +1,3 @@ version = "3.5.*" -upstream_repository = "https://github.com/mpdavis/python-jose" +upstream-repository = "https://github.com/mpdavis/python-jose" dependencies = ["types-pyasn1"] # excluding pyrsa, cryptography until typing is available diff --git a/stubs/python-nmap/METADATA.toml b/stubs/python-nmap/METADATA.toml index 03ac98d97e07..5adab60f78fd 100644 --- a/stubs/python-nmap/METADATA.toml +++ b/stubs/python-nmap/METADATA.toml @@ -1,2 +1,2 @@ version = "0.7.*" -upstream_repository = "https://bitbucket.org/xael/python-nmap" +upstream-repository = "https://bitbucket.org/xael/python-nmap" diff --git a/stubs/python-xlib/METADATA.toml b/stubs/python-xlib/METADATA.toml index 949a79c20435..8bb5fab0a6bd 100644 --- a/stubs/python-xlib/METADATA.toml +++ b/stubs/python-xlib/METADATA.toml @@ -1,2 +1,2 @@ version = "0.33.*" -upstream_repository = "https://github.com/python-xlib/python-xlib" +upstream-repository = "https://github.com/python-xlib/python-xlib" diff --git a/stubs/pytz/METADATA.toml b/stubs/pytz/METADATA.toml index 275d74666e10..9e678a6d8541 100644 --- a/stubs/pytz/METADATA.toml +++ b/stubs/pytz/METADATA.toml @@ -1,3 +1,3 @@ version = "2026.1.post1" # This is a mirror of https://git.launchpad.net/pytz/tree, see https://pythonhosted.org/pytz/#latest-versions -upstream_repository = "https://github.com/stub42/pytz" +upstream-repository = "https://github.com/stub42/pytz" diff --git a/stubs/pywin32/METADATA.toml b/stubs/pywin32/METADATA.toml index 7e375492009f..6dbaac600ca5 100644 --- a/stubs/pywin32/METADATA.toml +++ b/stubs/pywin32/METADATA.toml @@ -1,6 +1,6 @@ version = "311.*" -upstream_repository = "https://github.com/mhammond/pywin32" +upstream-repository = "https://github.com/mhammond/pywin32" [tool.stubtest] -supported_platforms = ["win32"] -ci_platforms = ["win32"] +supported-platforms = ["win32"] +ci-platforms = ["win32"] diff --git a/stubs/pyxdg/METADATA.toml b/stubs/pyxdg/METADATA.toml index 6b436499ffd3..a0370c6a8b74 100644 --- a/stubs/pyxdg/METADATA.toml +++ b/stubs/pyxdg/METADATA.toml @@ -1,2 +1,2 @@ version = "0.28.*" -upstream_repository = "https://github.com/takluyver/pyxdg" +upstream-repository = "https://github.com/takluyver/pyxdg" diff --git a/stubs/qrbill/METADATA.toml b/stubs/qrbill/METADATA.toml index 5f26499b0e7e..468d224cb47d 100644 --- a/stubs/qrbill/METADATA.toml +++ b/stubs/qrbill/METADATA.toml @@ -1,3 +1,3 @@ version = "1.2.*" -upstream_repository = "https://github.com/claudep/swiss-qr-bill" +upstream-repository = "https://github.com/claudep/swiss-qr-bill" dependencies = ["types-qrcode"] diff --git a/stubs/qrcode/METADATA.toml b/stubs/qrcode/METADATA.toml index 591efe1fbc1c..f329321ac1f0 100644 --- a/stubs/qrcode/METADATA.toml +++ b/stubs/qrcode/METADATA.toml @@ -1,5 +1,5 @@ version = "8.2.*" -upstream_repository = "https://github.com/lincolnloop/python-qrcode" +upstream-repository = "https://github.com/lincolnloop/python-qrcode" # must be a version of Pillow that is py.typed dependencies = ["Pillow>=10.3.0"] diff --git a/stubs/ratelimit/METADATA.toml b/stubs/ratelimit/METADATA.toml index d7e6677bef62..dbdb547943c9 100644 --- a/stubs/ratelimit/METADATA.toml +++ b/stubs/ratelimit/METADATA.toml @@ -1,2 +1,2 @@ version = "2.2.*" -upstream_repository = "https://github.com/tomasbasham/ratelimit" +upstream-repository = "https://github.com/tomasbasham/ratelimit" diff --git a/stubs/regex/METADATA.toml b/stubs/regex/METADATA.toml index bf68f4f7783a..c8fde20b0ff0 100644 --- a/stubs/regex/METADATA.toml +++ b/stubs/regex/METADATA.toml @@ -1,2 +1,2 @@ version = "2026.4.4" -upstream_repository = "https://github.com/mrabarnett/mrab-regex" +upstream-repository = "https://github.com/mrabarnett/mrab-regex" diff --git a/stubs/reportlab/METADATA.toml b/stubs/reportlab/METADATA.toml index 33ce4a87e357..d2708fba9e5f 100644 --- a/stubs/reportlab/METADATA.toml +++ b/stubs/reportlab/METADATA.toml @@ -1,7 +1,7 @@ version = "4.4.10" # GitHub mirror of https://hg.reportlab.com/hg-public/reportlab/file -upstream_repository = "https://github.com/MrBitBucket/reportlab-mirror" +upstream-repository = "https://github.com/MrBitBucket/reportlab-mirror" [tool.stubtest] -apt_dependencies = ["libcairo2-dev"] +apt-dependencies = ["libcairo2-dev"] extras = ["pycairo"] diff --git a/stubs/requests-oauthlib/METADATA.toml b/stubs/requests-oauthlib/METADATA.toml index 8f322b968340..7f8247a2e87e 100644 --- a/stubs/requests-oauthlib/METADATA.toml +++ b/stubs/requests-oauthlib/METADATA.toml @@ -1,3 +1,3 @@ version = "2.0.*" -upstream_repository = "https://github.com/requests/requests-oauthlib" +upstream-repository = "https://github.com/requests/requests-oauthlib" dependencies = ["types-oauthlib", "types-requests"] diff --git a/stubs/requests/METADATA.toml b/stubs/requests/METADATA.toml index 242c54f45693..cc7fdb72b5d7 100644 --- a/stubs/requests/METADATA.toml +++ b/stubs/requests/METADATA.toml @@ -1,8 +1,8 @@ version = "~=2.33.0" -upstream_repository = "https://github.com/psf/requests" +upstream-repository = "https://github.com/psf/requests" # requires a version of urllib3 with a py.typed file dependencies = ["urllib3>=2"] -extra_description = """\ +extra-description = """\ Note: `types-requests` has required `urllib3>=2` since v2.31.0.7. \ If you need to install `types-requests` into an environment \ that must also have `urllib3<2` installed into it, \ diff --git a/stubs/resampy/METADATA.toml b/stubs/resampy/METADATA.toml index 5ffaff579f93..ed770025c32d 100644 --- a/stubs/resampy/METADATA.toml +++ b/stubs/resampy/METADATA.toml @@ -1,4 +1,4 @@ version = "0.4.*" -upstream_repository = "https://github.com/bmcfee/resampy" +upstream-repository = "https://github.com/bmcfee/resampy" # Requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20"] diff --git a/stubs/retry/METADATA.toml b/stubs/retry/METADATA.toml index a2623b57dbef..40237f386a7f 100644 --- a/stubs/retry/METADATA.toml +++ b/stubs/retry/METADATA.toml @@ -1,2 +1,2 @@ version = "0.9.*" -upstream_repository = "https://github.com/invl/retry" +upstream-repository = "https://github.com/invl/retry" diff --git a/stubs/rfc3339-validator/METADATA.toml b/stubs/rfc3339-validator/METADATA.toml index f564e7971ec4..d2bb8f30a310 100644 --- a/stubs/rfc3339-validator/METADATA.toml +++ b/stubs/rfc3339-validator/METADATA.toml @@ -1,2 +1,2 @@ version = "0.1.*" -upstream_repository = "https://github.com/naimetti/rfc3339-validator" +upstream-repository = "https://github.com/naimetti/rfc3339-validator" diff --git a/stubs/s2clientprotocol/METADATA.toml b/stubs/s2clientprotocol/METADATA.toml index 346c68995095..04ffb1ba31f9 100644 --- a/stubs/s2clientprotocol/METADATA.toml +++ b/stubs/s2clientprotocol/METADATA.toml @@ -2,6 +2,6 @@ # in scripts/sync_protobuf/s2clientprotocol.py and vice-versa. # When updating, also re-run the script version = "5.*" -upstream_repository = "https://github.com/Blizzard/s2client-proto" +upstream-repository = "https://github.com/Blizzard/s2client-proto" dependencies = ["types-protobuf"] -extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 27.2 on [s2client-proto 5.0.12.91115.0](https://github.com/Blizzard/s2client-proto/tree/c04df4adbe274858a4eb8417175ee32ad02fd609)." +extra-description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 27.2 on [s2client-proto 5.0.12.91115.0](https://github.com/Blizzard/s2client-proto/tree/c04df4adbe274858a4eb8417175ee32ad02fd609)." diff --git a/stubs/seaborn/METADATA.toml b/stubs/seaborn/METADATA.toml index fc0d27d7d778..58706ffb3aa3 100644 --- a/stubs/seaborn/METADATA.toml +++ b/stubs/seaborn/METADATA.toml @@ -1,4 +1,4 @@ version = "0.13.2" # Requires a version of numpy and matplotlib with a `py.typed` file dependencies = ["matplotlib>=3.8", "numpy>=1.20", "pandas-stubs"] -upstream_repository = "https://github.com/mwaskom/seaborn" +upstream-repository = "https://github.com/mwaskom/seaborn" diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index cef335f1ef24..94860d1f20bf 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,11 +1,11 @@ version = "82.0.*" -upstream_repository = "https://github.com/pypa/setuptools" -extra_description = """\ +upstream-repository = "https://github.com/pypa/setuptools" +extra-description = """\ Given that `pkg_resources` is typed since `setuptools >= 71.1`, \ it is no longer included with `types-setuptools`. """ [tool.stubtest] # darwin is equivalent to linux for OS-specific methods -ci_platforms = ["linux", "win32"] -stubtest_dependencies = ["tomli"] +ci-platforms = ["linux", "win32"] +stubtest-dependencies = ["tomli"] diff --git a/stubs/shapely/METADATA.toml b/stubs/shapely/METADATA.toml index 51f0a5f9f4a0..3d6e72d54ecf 100644 --- a/stubs/shapely/METADATA.toml +++ b/stubs/shapely/METADATA.toml @@ -1,4 +1,4 @@ version = "2.1.*" # Requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20"] -upstream_repository = "https://github.com/shapely/shapely" +upstream-repository = "https://github.com/shapely/shapely" diff --git a/stubs/simple-websocket/METADATA.toml b/stubs/simple-websocket/METADATA.toml index 31e3d56b0d56..85219da88908 100644 --- a/stubs/simple-websocket/METADATA.toml +++ b/stubs/simple-websocket/METADATA.toml @@ -1,3 +1,3 @@ version = "1.1.*" -upstream_repository = "https://github.com/miguelgrinberg/simple-websocket" +upstream-repository = "https://github.com/miguelgrinberg/simple-websocket" dependencies = ["wsproto"] diff --git a/stubs/simplejson/METADATA.toml b/stubs/simplejson/METADATA.toml index dde6372bd8b3..63c9ff16b4b7 100644 --- a/stubs/simplejson/METADATA.toml +++ b/stubs/simplejson/METADATA.toml @@ -1,2 +1,2 @@ version = "3.20.*" -upstream_repository = "https://github.com/simplejson/simplejson" +upstream-repository = "https://github.com/simplejson/simplejson" diff --git a/stubs/singledispatch/METADATA.toml b/stubs/singledispatch/METADATA.toml index 4c6341083d85..9bdcc7abbe8d 100644 --- a/stubs/singledispatch/METADATA.toml +++ b/stubs/singledispatch/METADATA.toml @@ -1,2 +1,2 @@ version = "4.1.*" -upstream_repository = "https://github.com/jaraco/singledispatch" +upstream-repository = "https://github.com/jaraco/singledispatch" diff --git a/stubs/six/METADATA.toml b/stubs/six/METADATA.toml index 81454f85efcb..bf036333b2b7 100644 --- a/stubs/six/METADATA.toml +++ b/stubs/six/METADATA.toml @@ -1,2 +1,2 @@ version = "1.17.*" -upstream_repository = "https://github.com/benjaminp/six" +upstream-repository = "https://github.com/benjaminp/six" diff --git a/stubs/slumber/METADATA.toml b/stubs/slumber/METADATA.toml index 8d68695b2654..917ca1eec715 100644 --- a/stubs/slumber/METADATA.toml +++ b/stubs/slumber/METADATA.toml @@ -1,3 +1,3 @@ version = "0.7.*" -upstream_repository = "https://github.com/samgiles/slumber" +upstream-repository = "https://github.com/samgiles/slumber" dependencies = ["types-requests"] diff --git a/stubs/str2bool/METADATA.toml b/stubs/str2bool/METADATA.toml index 9e1e7d9dc7d3..603a54f0026b 100644 --- a/stubs/str2bool/METADATA.toml +++ b/stubs/str2bool/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1" -upstream_repository = "https://github.com/symonsoft/str2bool" +upstream-repository = "https://github.com/symonsoft/str2bool" diff --git a/stubs/tabulate/METADATA.toml b/stubs/tabulate/METADATA.toml index 44b5c0195e48..7deacccbf1f4 100644 --- a/stubs/tabulate/METADATA.toml +++ b/stubs/tabulate/METADATA.toml @@ -1,2 +1,2 @@ version = "0.10.*" -upstream_repository = "https://github.com/astanin/python-tabulate" +upstream-repository = "https://github.com/astanin/python-tabulate" diff --git a/stubs/tensorflow/METADATA.toml b/stubs/tensorflow/METADATA.toml index 3ac4c530b38c..33e3b3e45e24 100644 --- a/stubs/tensorflow/METADATA.toml +++ b/stubs/tensorflow/METADATA.toml @@ -1,16 +1,16 @@ # Using an exact number in the specifier for scripts/sync_protobuf/tensorflow.py # When updating, also re-run the script version = "~=2.18.0" -upstream_repository = "https://github.com/tensorflow/tensorflow" +upstream-repository = "https://github.com/tensorflow/tensorflow" # requires a version of numpy with a `py.typed` file dependencies = ["numpy>=1.20", "types-protobuf", "types-requests"] -extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 27.2 on `tensorflow==2.18.0`." -partial_stub = true +extra-description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 27.2 on `tensorflow==2.18.0`." +partial-stub = true [tool.stubtest] -ignore_missing_stub = true +ignore-missing-stub = true # TODO: Support/update to keras 3.7 -stubtest_dependencies = ["keras==3.6.*"] +stubtest-dependencies = ["keras==3.6.*"] # tensorflow 2.19 doesn't support Python 3.13: # https://github.com/tensorflow/tensorflow/issues/78774 skip = true diff --git a/stubs/toml/METADATA.toml b/stubs/toml/METADATA.toml index 13a5562b3436..b0b71a816498 100644 --- a/stubs/toml/METADATA.toml +++ b/stubs/toml/METADATA.toml @@ -1,2 +1,2 @@ version = "0.10.*" -upstream_repository = "https://github.com/uiri/toml" +upstream-repository = "https://github.com/uiri/toml" diff --git a/stubs/toposort/METADATA.toml b/stubs/toposort/METADATA.toml index 598e8d0d5ae0..c987c6bbe14c 100644 --- a/stubs/toposort/METADATA.toml +++ b/stubs/toposort/METADATA.toml @@ -1,2 +1,2 @@ version = "1.10" -upstream_repository = "https://gitlab.com/ericvsmith/toposort" +upstream-repository = "https://gitlab.com/ericvsmith/toposort" diff --git a/stubs/tqdm/METADATA.toml b/stubs/tqdm/METADATA.toml index f1ebe9b5a40f..3f13151c720f 100644 --- a/stubs/tqdm/METADATA.toml +++ b/stubs/tqdm/METADATA.toml @@ -1,5 +1,5 @@ version = "4.67.3" -upstream_repository = "https://github.com/tqdm/tqdm" +upstream-repository = "https://github.com/tqdm/tqdm" dependencies = ["types-requests"] [tool.stubtest] @@ -7,4 +7,4 @@ extras = ["slack", "telegram"] # Add `"tensorflow"` to this list when there's a tensorflow release supporting # Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774. # Also remove tqdm.keras from @tests/stubtest_allowlist.txt. -stubtest_dependencies = ["dask", "pandas", "rich"] +stubtest-dependencies = ["dask", "pandas", "rich"] diff --git a/stubs/translationstring/METADATA.toml b/stubs/translationstring/METADATA.toml index 3c910d4fd43f..cfb8d9086587 100644 --- a/stubs/translationstring/METADATA.toml +++ b/stubs/translationstring/METADATA.toml @@ -1,2 +1,2 @@ version = "1.4.*" -upstream_repository = "https://github.com/Pylons/translationstring" +upstream-repository = "https://github.com/Pylons/translationstring" diff --git a/stubs/ttkthemes/METADATA.toml b/stubs/ttkthemes/METADATA.toml index de555ee078b4..5067b9d903ae 100644 --- a/stubs/ttkthemes/METADATA.toml +++ b/stubs/ttkthemes/METADATA.toml @@ -1,2 +1,2 @@ version = "3.3.*" -upstream_repository = "https://github.com/TkinterEP/ttkthemes" +upstream-repository = "https://github.com/TkinterEP/ttkthemes" diff --git a/stubs/tzdata/METADATA.toml b/stubs/tzdata/METADATA.toml index 311839bf83bf..58f61b4c7dea 100644 --- a/stubs/tzdata/METADATA.toml +++ b/stubs/tzdata/METADATA.toml @@ -1,2 +1,2 @@ version = "2026.*" -upstream_repository = "https://github.com/python/tzdata" +upstream-repository = "https://github.com/python/tzdata" diff --git a/stubs/uWSGI/METADATA.toml b/stubs/uWSGI/METADATA.toml index 9324d956c585..143e5d9969d4 100644 --- a/stubs/uWSGI/METADATA.toml +++ b/stubs/uWSGI/METADATA.toml @@ -1,6 +1,6 @@ version = "2.0.*" -upstream_repository = "https://github.com/unbit/uwsgi" -extra_description = """\ +upstream-repository = "https://github.com/unbit/uwsgi" +extra-description = """\ Type hints for uWSGI's \ [Python API](https://uwsgi-docs.readthedocs.io/en/latest/PythonModule.html). \ Note that this API is available only when running Python code inside a uWSGI process \ @@ -12,4 +12,4 @@ extra_description = """\ # Run stubtest on MacOS as well, to check that the # uWSGI-specific parts of stubtest_third_party.py # also work there -ci_platforms = ["linux", "darwin"] +ci-platforms = ["linux", "darwin"] diff --git a/stubs/unidiff/METADATA.toml b/stubs/unidiff/METADATA.toml index 98f11c94dde3..972eb6704981 100644 --- a/stubs/unidiff/METADATA.toml +++ b/stubs/unidiff/METADATA.toml @@ -1,2 +1,2 @@ version = "0.7.*" -upstream_repository = "https://github.com/matiasb/python-unidiff" +upstream-repository = "https://github.com/matiasb/python-unidiff" diff --git a/stubs/untangle/METADATA.toml b/stubs/untangle/METADATA.toml index 7510b283e05d..5ce60ac0831b 100644 --- a/stubs/untangle/METADATA.toml +++ b/stubs/untangle/METADATA.toml @@ -1,2 +1,2 @@ version = "1.2.*" -upstream_repository = "https://github.com/stchris/untangle" +upstream-repository = "https://github.com/stchris/untangle" diff --git a/stubs/usersettings/METADATA.toml b/stubs/usersettings/METADATA.toml index 2f8a7161b025..70ce550561af 100644 --- a/stubs/usersettings/METADATA.toml +++ b/stubs/usersettings/METADATA.toml @@ -1,2 +1,2 @@ version = "1.1.*" -upstream_repository = "https://github.com/glvnst/usersettings" +upstream-repository = "https://github.com/glvnst/usersettings" diff --git a/stubs/vobject/METADATA.toml b/stubs/vobject/METADATA.toml index aa38629db388..aeece27cafe4 100644 --- a/stubs/vobject/METADATA.toml +++ b/stubs/vobject/METADATA.toml @@ -1,2 +1,2 @@ version = "~=0.9.9" -upstream_repository = "https://github.com/py-vobject/vobject" +upstream-repository = "https://github.com/py-vobject/vobject" diff --git a/stubs/waitress/METADATA.toml b/stubs/waitress/METADATA.toml index 9423798e9ae4..d3d07978021f 100644 --- a/stubs/waitress/METADATA.toml +++ b/stubs/waitress/METADATA.toml @@ -1,6 +1,6 @@ version = "~=3.0.1" -upstream_repository = "https://github.com/Pylons/waitress" +upstream-repository = "https://github.com/Pylons/waitress" [tool.stubtest] # linux and darwin are equivalent -ci_platforms = ["linux", "win32"] +ci-platforms = ["linux", "win32"] diff --git a/stubs/watchpoints/METADATA.toml b/stubs/watchpoints/METADATA.toml index 0d08dbc0d9da..b0e6579c3ec2 100644 --- a/stubs/watchpoints/METADATA.toml +++ b/stubs/watchpoints/METADATA.toml @@ -1,2 +1,2 @@ version = "0.2.5" -upstream_repository = "https://github.com/gaogaotiantian/watchpoints" +upstream-repository = "https://github.com/gaogaotiantian/watchpoints" diff --git a/stubs/webencodings/METADATA.toml b/stubs/webencodings/METADATA.toml index faf76668a57c..af406126c763 100644 --- a/stubs/webencodings/METADATA.toml +++ b/stubs/webencodings/METADATA.toml @@ -1,2 +1,2 @@ version = "0.5.*" -upstream_repository = "https://github.com/gsnedders/python-webencodings" +upstream-repository = "https://github.com/gsnedders/python-webencodings" diff --git a/stubs/whatthepatch/METADATA.toml b/stubs/whatthepatch/METADATA.toml index ff3378e56b04..709d41f7e8f7 100644 --- a/stubs/whatthepatch/METADATA.toml +++ b/stubs/whatthepatch/METADATA.toml @@ -1,2 +1,2 @@ version = "1.0.*" -upstream_repository = "https://github.com/cscorley/whatthepatch" +upstream-repository = "https://github.com/cscorley/whatthepatch" diff --git a/stubs/workalendar/METADATA.toml b/stubs/workalendar/METADATA.toml index 0d4a5007a18c..cf5ba7a75cad 100644 --- a/stubs/workalendar/METADATA.toml +++ b/stubs/workalendar/METADATA.toml @@ -1,2 +1,2 @@ version = "17.0.*" -upstream_repository = "https://github.com/workalendar/workalendar" +upstream-repository = "https://github.com/workalendar/workalendar" diff --git a/stubs/wurlitzer/METADATA.toml b/stubs/wurlitzer/METADATA.toml index 90659aa7359b..5c5dec9f0006 100644 --- a/stubs/wurlitzer/METADATA.toml +++ b/stubs/wurlitzer/METADATA.toml @@ -1,2 +1,2 @@ version = "3.1.*" -upstream_repository = "https://github.com/minrk/wurlitzer" +upstream-repository = "https://github.com/minrk/wurlitzer" diff --git a/stubs/www-authenticate/METADATA.toml b/stubs/www-authenticate/METADATA.toml index 2e7e670d98b4..9acad68fd386 100644 --- a/stubs/www-authenticate/METADATA.toml +++ b/stubs/www-authenticate/METADATA.toml @@ -1,2 +1,2 @@ version = "0.9.*" -upstream_repository = "https://github.com/alexdutton/www-authenticate" +upstream-repository = "https://github.com/alexdutton/www-authenticate" diff --git a/stubs/xdgenvpy/METADATA.toml b/stubs/xdgenvpy/METADATA.toml index a2aa0bf1a91d..2553022b313e 100644 --- a/stubs/xdgenvpy/METADATA.toml +++ b/stubs/xdgenvpy/METADATA.toml @@ -1,2 +1,2 @@ version = "3.0.*" -upstream_repository = "https://gitlab.com/deliberist-group/xdgenvpy" +upstream-repository = "https://gitlab.com/deliberist-group/xdgenvpy" diff --git a/stubs/xlrd/METADATA.toml b/stubs/xlrd/METADATA.toml index d82f4f2f46c6..c9f958c49828 100644 --- a/stubs/xlrd/METADATA.toml +++ b/stubs/xlrd/METADATA.toml @@ -1,2 +1,2 @@ version = "2.0.*" -upstream_repository = "https://github.com/python-excel/xlrd" +upstream-repository = "https://github.com/python-excel/xlrd" diff --git a/stubs/xmldiff/METADATA.toml b/stubs/xmldiff/METADATA.toml index 0d59b5fa34e8..b9262f38d947 100644 --- a/stubs/xmldiff/METADATA.toml +++ b/stubs/xmldiff/METADATA.toml @@ -1,2 +1,2 @@ version = "2.7.*" -upstream_repository = "https://github.com/Shoobx/xmldiff" +upstream-repository = "https://github.com/Shoobx/xmldiff" diff --git a/stubs/xmltodict/METADATA.toml b/stubs/xmltodict/METADATA.toml index 06d1474b7665..9a5679f06323 100644 --- a/stubs/xmltodict/METADATA.toml +++ b/stubs/xmltodict/METADATA.toml @@ -1,2 +1,2 @@ version = "~= 1.0.1" -upstream_repository = "https://github.com/martinblech/xmltodict" +upstream-repository = "https://github.com/martinblech/xmltodict" diff --git a/stubs/yt-dlp/METADATA.toml b/stubs/yt-dlp/METADATA.toml index 4c7c8486251f..8b49165a231f 100644 --- a/stubs/yt-dlp/METADATA.toml +++ b/stubs/yt-dlp/METADATA.toml @@ -1,3 +1,3 @@ version = "2026.3.17" -upstream_repository = "https://github.com/yt-dlp/yt-dlp" +upstream-repository = "https://github.com/yt-dlp/yt-dlp" dependencies = ["websockets"] diff --git a/stubs/zstd/METADATA.toml b/stubs/zstd/METADATA.toml index e94dd94536c6..fbc3a5a5f5c2 100644 --- a/stubs/zstd/METADATA.toml +++ b/stubs/zstd/METADATA.toml @@ -1,2 +1,2 @@ version = "~=1.5.7.3" -upstream_repository = "https://github.com/sergey-dryabzhinsky/python-zstd" +upstream-repository = "https://github.com/sergey-dryabzhinsky/python-zstd" diff --git a/stubs/zxcvbn/METADATA.toml b/stubs/zxcvbn/METADATA.toml index 8ff1a4e9773c..2df5810cba47 100644 --- a/stubs/zxcvbn/METADATA.toml +++ b/stubs/zxcvbn/METADATA.toml @@ -1,2 +1,2 @@ version = "4.5.*" -upstream_repository = "https://github.com/dwolfhub/zxcvbn-python" +upstream-repository = "https://github.com/dwolfhub/zxcvbn-python" diff --git a/tests/README.md b/tests/README.md index 1d38db0b3ec4..6ae812cfab36 100644 --- a/tests/README.md +++ b/tests/README.md @@ -169,13 +169,13 @@ By default, stubtest emits an error if a public object is present at runtime but missing from the stub. However, this behaviour can be disabled using the `--ignore-missing-stub` option. -If a distribution has `ignore_missing_stub = true` in the `[tool.stubtest]` section of its +If a distribution has `ignore-missing-stub = true` in the `[tool.stubtest]` section of its `tests/METADATA.toml` file, `stubtest_third_party.py` will test that distribution with the `--ignore-missing-stub` option. This indicates that the stubs for this distribution are considered "incomplete". You can help make typeshed's stubs more complete by removing -`ignore_missing_stub = true` from the `tests/METADATA.toml` file for a +`ignore-missing-stub = true` from the `tests/METADATA.toml` file for a third-party stubs distribution, running stubtest, and then adding things that stubtest reports to be missing to the stub. However, note that not *everything* that stubtest reports to be missing should necessarily be added to the stub. @@ -191,8 +191,8 @@ leverage type information provided by these plugins when validating stubs. To use this feature, add the following configuration to the `tool.stubtest` section in your METADATA.toml: ```toml -mypy_plugins = ["mypy_django_plugin.main"] -mypy_plugins_config = { "django-stubs" = { "django_settings_module" = "@tests.django_settings" } } +mypy-plugins = ["mypy_django_plugin.main"] +mypy-plugins-config = { "django-stubs" = { "django_settings_module" = "@tests.django_settings" } } ``` For Django stubs specifically, you'll need to create a `django_settings.py` file in your `@tests` directory