Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from EdgyEdgemond/fix/49
Browse files Browse the repository at this point in the history
Fix/49: Upgrade dependencies, cleanup linting
  • Loading branch information
EdgyEdgemond authored Feb 23, 2024
2 parents 32558aa + d703efd commit b01abb4
Show file tree
Hide file tree
Showing 30 changed files with 1,160 additions and 1,238 deletions.
80 changes: 0 additions & 80 deletions .github/workflows/pythonapp.yml

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: style
name: Style

on: [push]
on:
push:
branches:
# Push will only build on branches that match this name
# Pull requests will override this, so pushes to pull requests will still build
- tescovalue
pull_request:
branches:
- main

jobs:
check-style:
Expand All @@ -20,4 +28,4 @@ jobs:
poetry install
- name: Lint with ruff
run: |
ruff .
pre-commit run --all-files
55 changes: 26 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: tests
name: Test/Lint

on: [push]
on:
push:
branches:
# Push will only build on branches that match this name
# Pull requests will override this, so pushes to pull requests will still build
- tescovalue
pull_request:
branches:
- master

jobs:

Expand All @@ -10,10 +18,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9.18
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
Expand All @@ -32,41 +40,30 @@ jobs:
yml: ./codecov.yml
fail_ci_if_error: true

test-38:
test-python-versions:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [3.9.18, 3.10.13, 3.11, 3.12]
include:
- os: windows-latest
version: 3.9.13
- os: windows-latest
version: 3.10.11
exclude:
- os: windows-latest
version: 3.9.18
- os: windows-latest
version: 3.10.13

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
- name: Test with pytest
run: |
pytest
test-39:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
Expand Down
31 changes: 5 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,18 @@ repos:
- id: fix-byte-order-marker
- id: end-of-file-fixer

- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
args: [--line-length=120]

- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
- id: add-trailing-comma

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.247
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
hooks:
- id: ruff-format
args: [--preview, -s]
- id: ruff
args: [--fix]

Expand All @@ -53,4 +31,5 @@ repos:
hooks:
- id: remove-crlf
- id: remove-tabs
exclude: setup.cfg
exclude: setup.cfg|Makefile
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ poetry install

## Usage

`changelog-gen` currently only supports reading changes from a `release_notes` folder.
`changelog` currently only supports reading changes from a `release_notes` folder.

Files in the folder should use the format `{issue_number}.{type}`.

Expand All @@ -39,7 +39,7 @@ major release being suggested.
$ ls release_notes
4.fix 7.fix

$ changelog-gen
$ changelog generate

## v0.2.1

Expand Down
Loading

0 comments on commit b01abb4

Please sign in to comment.