Skip to content

Commit

Permalink
Ci/improvements (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfocko authored Feb 27, 2024
2 parents df5327d + 25e8f04 commit 085957a
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/check-release-notes.yml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- "#"
2 changes: 2 additions & 0 deletions LICENSE_HEADER.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright Contributors to the Packit project.
SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions examples/basic_storage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

import tempfile
from requre.cassette import Cassette

Expand Down
3 changes: 3 additions & 0 deletions examples/file_store.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions examples/generic_decorator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT

from requre.objects import ObjectStorage
from requre.cassette import Cassette

Expand Down
3 changes: 3 additions & 0 deletions examples/request_example.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 085957a

Please sign in to comment.