From 919799c4c190babd0677a636dc9264359511ec22 Mon Sep 17 00:00:00 2001 From: cao-fei8 Date: Sat, 7 Jan 2023 12:59:01 +0800 Subject: [PATCH] Fix pre-commit link syntax in contributing doc Signed-off-by: cao-fei8 --- ...link-syntax-in-contributing-doc-1018.patch | 26 +++++++++++++++++++ python-attrs.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-Fix-pre-commit-link-syntax-in-contributing-doc-1018.patch diff --git a/0001-Fix-pre-commit-link-syntax-in-contributing-doc-1018.patch b/0001-Fix-pre-commit-link-syntax-in-contributing-doc-1018.patch new file mode 100644 index 0000000..dbe29ed --- /dev/null +++ b/0001-Fix-pre-commit-link-syntax-in-contributing-doc-1018.patch @@ -0,0 +1,26 @@ +From fdf824211f890d96f28b8382fe48884cc71d2e1b Mon Sep 17 00:00:00 2001 +From: Sviatoslav Sydorenko +Date: Mon, 22 Aug 2022 16:09:55 +0200 +Subject: [PATCH] Fix pre-commit link syntax in contributing doc (#1018) + +It was using RST but the doc is actually in Markdown. +--- + .github/CONTRIBUTING.md | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md +index e45d16b..76bbe82 100644 +--- a/.github/CONTRIBUTING.md ++++ b/.github/CONTRIBUTING.md +@@ -96,7 +96,7 @@ This is not strictly necessary, because our [*tox*] file contains an environment + $ pre-commit run --all-files + ``` + +-and our CI has integration with `pre-commit.ci `_. ++and our CI has integration with [pre-commit.ci](https://pre-commit.ci). + But it's way more comfortable to run it locally and *git* catching avoidable errors. + + +-- +2.33.0 + diff --git a/python-attrs.spec b/python-attrs.spec index e20cd7f..06b86c9 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -9,13 +9,14 @@ object protocols. \ Name: python-attrs Summary: Python attributes without boilerplate Version: 22.1.0 -Release: 3 +Release: 4 License: MIT URL: http://www.attrs.org/ Source0: https://github.com/hynek/attrs/archive/%{version}/attrs-%{version}.tar.gz Patch0: 0001-Update-.gitignore.patch Patch1: 0001-Fix-typo.patch +Patch2: 0001-Fix-pre-commit-link-syntax-in-contributing-doc-1018.patch BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-devel @@ -60,6 +61,9 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %doc AUTHORS.rst README.rst %changelog +* Mon Jan 9 2023 caofei - 22.1.0-4 +- Fix pre-commit link syntax in contributing doc + * Mon Jan 9 2023 caofei - 22.1.0-3 - Fix typo -- Gitee