diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index b9b3cbc..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,20 +0,0 @@ -TODO: - -- [ ] ‹fill in› - - - - - -Fixes - -Related to - -Merge before/after - ---- - - diff --git a/.github/workflows/check-release-notes.yml b/.github/workflows/check-release-notes.yml new file mode 100644 index 0000000..2ab975b --- /dev/null +++ b/.github/workflows/check-release-notes.yml @@ -0,0 +1,15 @@ +name: Check release notes + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + check_release_notes: + name: Notes are either written, or there are none + uses: packit/.github/.github/workflows/check-release-notes.yml@main + with: + description: ${{ github.event.pull_request.body }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26cdd34..fc6ecdb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,3 +47,18 @@ repos: args: - https://github.com/packit/requre.git stages: [manual, push] + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.28.0 + hooks: + - id: check-github-workflows + args: ["--verbose"] + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.5 + hooks: + - id: insert-license + files: \.py$ + args: + - --license-filepath + - LICENSE_HEADER.txt + - --comment-style + - "#" diff --git a/LICENSE_HEADER.txt b/LICENSE_HEADER.txt new file mode 100644 index 0000000..8a99247 --- /dev/null +++ b/LICENSE_HEADER.txt @@ -0,0 +1,2 @@ +Copyright Contributors to the Packit project. +SPDX-License-Identifier: MIT diff --git a/docs/conf.py b/docs/conf.py index e8991c7..0f5c97f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,6 @@ +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full diff --git a/examples/basic_storage.py b/examples/basic_storage.py index 37b2f5a..38266c0 100644 --- a/examples/basic_storage.py +++ b/examples/basic_storage.py @@ -1,3 +1,6 @@ +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + import tempfile from requre.cassette import Cassette diff --git a/examples/file_store.py b/examples/file_store.py index 3422eb2..a869039 100644 --- a/examples/file_store.py +++ b/examples/file_store.py @@ -1,3 +1,6 @@ +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + from requre.helpers.files import StoreFiles from requre.cassette import Cassette from tempfile import mkdtemp diff --git a/examples/generic_decorator.py b/examples/generic_decorator.py index d31e338..6533e30 100644 --- a/examples/generic_decorator.py +++ b/examples/generic_decorator.py @@ -1,3 +1,6 @@ +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + from requre.objects import ObjectStorage from requre.cassette import Cassette diff --git a/examples/request_example.py b/examples/request_example.py index bda382c..95f5417 100644 --- a/examples/request_example.py +++ b/examples/request_example.py @@ -1,3 +1,6 @@ +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + import requests import unittest from requre.online_replacing import record_requests_for_all_methods