Skip to content

Commit

Permalink
Merge branch 'release/0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Trenton Holmes committed Sep 5, 2023
2 parents 424f5e4 + 2bbaa6c commit 408a9ba
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 198 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
pull_request:

jobs:
lint:
name: lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
-
name: Checkout repository
uses: actions/checkout@v3
-
name: Check files
uses: pre-commit/[email protected]
create-release:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
needs:
- lint
steps:
-
uses: actions/checkout@v3
-
name: Get latest release info
id: query-release-info
uses: release-flow/keep-a-changelog-action@v2
with:
command: query
version: ${{ github.ref_name }}
-
name: Display release info
run: |
echo "Version: ${{ steps.query-release-info.outputs.version }}"
echo "Date: ${{ steps.query-release-info.outputs.release-date }}"
echo "${{ steps.query-release-info.outputs.release-notes }}"
-
uses: ncipollo/release-action@v1
with:
body: ${{ steps.query-release-info.outputs.release-notes }}
25 changes: 0 additions & 25 deletions .github/workflows/lint.yml

This file was deleted.

26 changes: 5 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
rev: "v3.0.3"
hooks:
- id: prettier
types_or:
Expand All @@ -35,27 +35,11 @@ repos:
- markdown
exclude: "(^Pipfile\\.lock$)"
# Python hooks
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.262'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.287'
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 23.3.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.7.0
hooks:
- id: black
# Dockerfile hooks
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0.2
hooks:
- id: hadolint
# Shell script hooks
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh
args:
- "--tab"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.2"
hooks:
- id: shellcheck
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2023-09-05

### Added

- CI enhancements to create a GitHub release with a changelog

### Changed

- Updated `pre-commit` hook versions, fixed old links, removed unneeded hooks
- Switch `black` hook to use its mirror for a speedup
- Updated `pipenv` from `2023.6.26 to 2023.9.1
- Updated Python version from 3.10 to 3.11
- Manually re-locked all Python dependencies

## [0.2.0] - 2023-07-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pre-commit = "*"
mypy = "*"

[requires]
python_version = "3.10"
python_version = "3.11"
281 changes: 138 additions & 143 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ephemeral/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ runs:
uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.10'
python-version: '3.11'
-
name: Install pipenv
shell: bash
run: |
pip3 --quiet install --user pipenv==2023.6.26
pip3 --quiet install --user pipenv==2023.9.1
-
name: Install dependencies
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions github/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ class GithubContainerRegistryOrgApi(_GithubContainerRegistryApiBase):
PACKAGE_VERSIONS_ENDPOINT = (
"/orgs/{ORG}/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions"
)
PACKAGE_VERSION_DELETE_ENDPOINT = "/orgs/{ORG}/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}" # noqa: 501
PACKAGE_VERSION_RESTORE_ENDPOINT = "/orgs/{ORG}/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}/restore" # noqa: 501
PACKAGE_VERSION_DELETE_ENDPOINT = "/orgs/{ORG}/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}" # noqa: E501
PACKAGE_VERSION_RESTORE_ENDPOINT = "/orgs/{ORG}/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}/restore" # noqa: E501


class GithubContainerRegistryUserApi(_GithubContainerRegistryApiBase):
Expand All @@ -199,4 +199,4 @@ class GithubContainerRegistryUserApi(_GithubContainerRegistryApiBase):
PACKAGE_VERSION_DELETE_ENDPOINT = (
"/user/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}"
)
PACKAGE_VERSION_RESTORE_ENDPOINT = "/user/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}/restore" # noqa: 501
PACKAGE_VERSION_RESTORE_ENDPOINT = "/user/packages/{PACKAGE_TYPE}/{PACKAGE_NAME}/versions/{PACKAGE_VERSION_ID}/restore" # noqa: E501
4 changes: 2 additions & 2 deletions untagged/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ runs:
uses: actions/setup-python@v4
id: setup-python
with:
python-version: '3.10'
python-version: '3.11'
-
name: Install pipenv
shell: bash
run: |
pip3 --quiet install --user pipenv==2023.6.26
pip3 --quiet install --user pipenv==2023.9.1
-
name: Install dependencies
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion version/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Final

_version: Final[tuple[int, int, int]] = (0, 1, 0)
_version: Final[tuple[int, int, int]] = (0, 3, 0)

version = ".".join(_version)

0 comments on commit 408a9ba

Please sign in to comment.