From a1f1132b7b3838efb98c67a846da30cdadb2c03a Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 30 Nov 2025 19:49:07 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20typos:=20its=20=E2=86=92=20it's?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/setuptools_scm/_config.py | 2 +- src/setuptools_scm/_integration/pyproject_reading.py | 2 +- testing/test_config.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f4ca4bf9..7faf0a33 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ For further configuration see the [documentation]. Some enterprise distributions like RHEL7 ship rather old setuptools versions. -In those cases its typically possible to build by using an sdist against `setuptools-scm<2.0`. +In those cases it's typically possible to build by using an sdist against `setuptools-scm<2.0`. As those old setuptools versions lack sensible types for versions, modern [setuptools-scm] is unable to support them sensibly. diff --git a/src/setuptools_scm/_config.py b/src/setuptools_scm/_config.py index 49fac2a4..04d9f585 100644 --- a/src/setuptools_scm/_config.py +++ b/src/setuptools_scm/_config.py @@ -134,7 +134,7 @@ def _check_absolute_root(root: _t.PathT, relative_to: _t.PathT | None) -> str: if os.path.isdir(relative_to): warnings.warn( "relative_to is expected to be a file," - f" its the directory {relative_to}\n" + f" it's the directory {relative_to}\n" "assuming the parent directory was passed" ) log.debug("dir %s", relative_to) diff --git a/src/setuptools_scm/_integration/pyproject_reading.py b/src/setuptools_scm/_integration/pyproject_reading.py index 75d86f62..a5b66f32 100644 --- a/src/setuptools_scm/_integration/pyproject_reading.py +++ b/src/setuptools_scm/_integration/pyproject_reading.py @@ -261,7 +261,7 @@ def get_args_for_pyproject( warnings.warn( f"{pyproject.path}: at [tool.{pyproject.tool_name}]\n" f"ignoring value relative_to={relative!r}" - " as its always relative to the config file" + " as it's always relative to the config file" ) if "dist_name" in section: if dist_name is None: diff --git a/testing/test_config.py b/testing/test_config.py index d0f06bd6..18fa6fad 100644 --- a/testing/test_config.py +++ b/testing/test_config.py @@ -72,7 +72,7 @@ def test_config_from_file_protects_relative_to(tmp_path: Path) -> None: UserWarning, match=".*pyproject.toml: at \\[tool.setuptools_scm\\]\n" "ignoring value relative_to='dont_use_me'" - " as its always relative to the config file", + " as it's always relative to the config file", ): assert Configuration.from_file(str(fn))