From 848285c809f68c3b69fd28295d62f2aee1eaf551 Mon Sep 17 00:00:00 2001 From: Kerry McAdams <58492561+klmcadams@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:50:04 -0400 Subject: [PATCH 1/3] remove pass_filenames: false from the hook --- .pre-commit-hooks.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index cdeef3c9..2e291b28 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -2,5 +2,4 @@ name: "Add License Headers" entry: add-license-headers language: python - pass_filenames: false - description: "Add missing license headers to files by using reuse lint and annotate" \ No newline at end of file + description: "Add missing license headers to files by using reuse lint and annotate" From 29119f22046cfe9370a73fd7df2d9694844a9772 Mon Sep 17 00:00:00 2001 From: Kerry McAdams <58492561+klmcadams@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:56:09 -0400 Subject: [PATCH 2/3] fix numbering for step iii in add license headers --- README.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 4a9ac1dc..d6c3142e 100644 --- a/README.rst +++ b/README.rst @@ -90,10 +90,10 @@ Currently, these hooks are available: There are two different ways to ignore specific files or file types: - #. In .pre-commit-config.yaml - + #. In .pre-commit-config.yaml + .. code:: yaml - + - repo: https://github.com/ansys/pre-commit-hooks rev: v0.1.3 hooks: @@ -104,25 +104,25 @@ Currently, these hooks are available: path/to/.*\.md | path/to/.*\.(ts|cpp) | )$ - + .. note :: - + - ``path/to/file1.py`` excludes the stated file. - ``path/to/.*\.md`` exlcudes all .md files within the ``path/to`` directory. - ``path/to/.*\.(ts|cpp)`` excludes all .ts and .cpp files within the ``path/to`` directory. - #. In .reuse/dep5 - + #. In .reuse/dep5 + .. code:: debcontrol - + Files: path/to/file1.py Copyright: 2023 ANSYS, Inc. and/or its affiliates. License: MIT - + Files: path/to/*.py Copyright: 2023 ANSYS, Inc. and/or its affiliates. License: MIT - + .. note:: - ``path/to/file1.py`` excludes the stated file. - ``path/to/*.py`` excludes all .py files in the ``path/to`` directory. From 219204d53b96d220d78ca21b381e7543fc4c5ce4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 18:56:17 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- README.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index d6c3142e..05949cdd 100644 --- a/README.rst +++ b/README.rst @@ -91,9 +91,9 @@ Currently, these hooks are available: There are two different ways to ignore specific files or file types: #. In .pre-commit-config.yaml - + .. code:: yaml - + - repo: https://github.com/ansys/pre-commit-hooks rev: v0.1.3 hooks: @@ -104,25 +104,25 @@ Currently, these hooks are available: path/to/.*\.md | path/to/.*\.(ts|cpp) | )$ - + .. note :: - + - ``path/to/file1.py`` excludes the stated file. - ``path/to/.*\.md`` exlcudes all .md files within the ``path/to`` directory. - ``path/to/.*\.(ts|cpp)`` excludes all .ts and .cpp files within the ``path/to`` directory. #. In .reuse/dep5 - + .. code:: debcontrol - + Files: path/to/file1.py Copyright: 2023 ANSYS, Inc. and/or its affiliates. License: MIT - + Files: path/to/*.py Copyright: 2023 ANSYS, Inc. and/or its affiliates. License: MIT - + .. note:: - ``path/to/file1.py`` excludes the stated file. - ``path/to/*.py`` excludes all .py files in the ``path/to`` directory.