Skip to content

Commit 3dbf797

Browse files
authored
chore: Update deps and CI routines (#45)
1 parent dfba0d9 commit 3dbf797

8 files changed

Lines changed: 450 additions & 431 deletions

File tree

.github/actions/deps/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ runs:
3333
shell: bash
3434
run: echo "${{github.workspace}}/.poetry/bin" >> $GITHUB_PATH
3535

36-
- name: Add poethepoet plugin
37-
shell: bash
38-
run: poetry self add 'poethepoet[poetry_plugin]'
39-
4036
- name: Poetry Version
4137
shell: bash
4238
run: poetry --version

.github/workflows/pre-commit.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Source
17-
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
17+
uses: actions/checkout@v4
2018
- name: Setup Dependencies
2119
uses: './.github/actions/deps'
2220
with:
@@ -25,8 +23,8 @@ jobs:
2523
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.12.0\'' > Gemfile
2624
- uses: ruby/setup-ruby@v1
2725
with:
28-
ruby-version: '3.0' # Not needed with a .ruby-version file
26+
ruby-version: '3.2' # Not needed with a .ruby-version file
2927
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3028
- name: Install Pre-commit dependencies
31-
run: poetry poe install
29+
run: poetry run poe install
3230
- uses: pre-commit/action@v3.0.0

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout Source
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

@@ -25,7 +25,7 @@ jobs:
2525
python-version: '3.11'
2626

2727
- name: Run Security Check
28-
run: poetry poe security
28+
run: poetry run poe security
2929

3030
- name: Get Python Module Version
3131
run: |

.github/workflows/validate.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout Source
17-
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
17+
uses: actions/checkout@v4
2018

2119
- name: Setup Dependencies
2220
uses: './.github/actions/deps'
@@ -25,11 +23,11 @@ jobs:
2523

2624
- name: Run Styling Enforcement
2725
shell: bash
28-
run: poetry poe check
26+
run: poetry run poe check
2927

3028
- name: Run Style Linting Enforcement
3129
shell: bash
32-
run: poetry poe lint
30+
run: poetry run poe lint
3331

3432
unit-tests:
3533
name: Run Unit Tests
@@ -40,9 +38,7 @@ jobs:
4038
runs-on: ${{ matrix.os }}
4139
steps:
4240
- name: Checkout Source
43-
uses: actions/checkout@v3
44-
with:
45-
fetch-depth: 0
41+
uses: actions/checkout@v4
4642

4743
- name: Setup Dependencies
4844
uses: './.github/actions/deps'
@@ -51,7 +47,7 @@ jobs:
5147

5248
- name: Run Tests
5349
shell: bash
54-
run: poetry poe test
50+
run: poetry run poe test
5551

5652
- name: Codecov
5753
uses: codecov/codecov-action@v3
@@ -61,9 +57,7 @@ jobs:
6157
runs-on: ubuntu-latest
6258
steps:
6359
- name: Checkout Source
64-
uses: actions/checkout@v3
65-
with:
66-
fetch-depth: 0
60+
uses: actions/checkout@v4
6761

6862
- name: Setup Dependencies
6963
uses: './.github/actions/deps'
@@ -72,4 +66,4 @@ jobs:
7266

7367
- name: Run Security Checks
7468
shell: bash
75-
run: poetry poe security
69+
run: poetry run poe security

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ repos:
2929

3030
- repo: https://github.com/astral-sh/ruff-pre-commit
3131
# Ruff version.
32-
rev: 95f113d6340ab4348ecc5d912cf6e6b3465bfb86 # frozen: v0.0.277
32+
rev: 6fcbf19c7cf351a8dc3517a0fed3ebfa05610de2 # frozen: v0.0.290
3333
hooks:
3434
- id: ruff
3535
args: [ --fix, --exit-non-zero-on-fix ]
3636

3737
- repo: https://github.com/psf/black
38-
rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # frozen: 23.3.0
38+
rev: e87737140f32d3cd7c44ede75f02dcd58e55820e # frozen: 23.9.1
3939
hooks:
4040
- id: black
4141
language_version: python3.11

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ poetry install
3131
### Run tests
3232

3333
```bash
34-
poetry poe test
35-
# or: poetry run poe test
34+
poetry run poe test
3635
```

poetry.lock

Lines changed: 425 additions & 393 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,26 +161,26 @@ python = "^3.8"
161161
typer = {extras = ["all"], version = "^0.9.0"}
162162

163163
[tool.poetry.group.test.dependencies]
164-
pytest = "^7.4.0"
164+
pytest = "^7.4.2"
165165
pytest-cov = "^4.1.0"
166-
coverage = "^7.2.7"
166+
coverage = "^7.3.1"
167167

168168
[tool.poetry.group.dev.dependencies]
169169
isort = {extras = ["toml"], version = "^5.12.0"}
170-
black = "^23.3.0"
171-
mypy = "^1.4.1"
172-
debugpy = "^1.6.7"
173-
ruff = "^0.0.277"
174-
poethepoet = "^0.20.0"
170+
black = "^23.9.1"
171+
mypy = "^1.5.1"
172+
debugpy = "^1.8.0"
173+
ruff = "^0.0.290"
174+
poethepoet = "^0.22.1"
175175

176176
[tool.poetry.group.security.dependencies]
177177
safety = "^2.3.5"
178178
bandit = {extras = ["toml"], version = "^1.7.5"}
179179

180180
[tool.poetry.group.docs.dependencies]
181-
mkdocs = "^1.4.3"
182-
mkdocs-material = "^9.1.18"
183-
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
181+
mkdocs = "^1.5.2"
182+
mkdocs-material = "^9.3.1"
183+
mkdocstrings = {extras = ["python"], version = "^0.23.0"}
184184

185185
[build-system]
186186
requires = ["poetry-core"]

0 commit comments

Comments
 (0)