Skip to content

Commit

Permalink
chore: automation housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Mar 6, 2024
1 parent bf44b0b commit 60148e4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

* [ ] Update tests
* [ ] Update docs
* [ ] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0-beta.2/#commit-message-for-a-fix-using-an-optional-issue-number)
* [ ] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0/)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ on:
branches:
- main

permissions:
id-token: write
contents: write

jobs:
Quality:
strategy:
fail-fast: true
matrix:
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -44,9 +48,6 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/pull-request-codecommit
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
25 changes: 22 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pull-request-codecommit"
version = "0.5.13"
description = "pull-request-codecommit creates a PR within CodeCommit based on your commit messages."
authors = ["Joris Conijn <joris@conijnonline.nl>"]
license = "MIT"
license = "Apache2"
readme = "README.md"

[tool.poetry.dependencies]
Expand All @@ -27,6 +27,25 @@ radon = "^6.0.1"
pull-request-codecommit = "pull_request_codecommit:main"
git-pr = "pull_request_codecommit:main"

[tool.pytest]
testpaths = "tests"

[tool.mypy]
ignore_missing_imports = true

[tool.coverage.run]
branch = true
source = ["pull_request_codecommit"]

[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"@abstract"
]

[tool.semantic_release]
build_command = "pip install poetry && poetry build"
version_variables = [
Expand All @@ -36,8 +55,8 @@ version_variables = [

[tool.semantic_release.commit_parser_options]
allowed_tags = [ "build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test" ]
minor_tags = ["feat"]
patch_tags = [ "chore", "docs", "fix", "perf", "style", "refactor", "test" ]
minor_tags = [ "feat" ]
patch_tags = [ "fix", "perf", "refactor" ]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
18 changes: 0 additions & 18 deletions setup.cfg

This file was deleted.

0 comments on commit 60148e4

Please sign in to comment.