Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/actions/deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ runs:
shell: bash
run: echo "${{github.workspace}}/.poetry/bin" >> $GITHUB_PATH

- name: Add poethepoet plugin
shell: bash
run: poetry self add 'poethepoet[poetry_plugin]'

- name: Poetry Version
shell: bash
run: poetry --version
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4
- name: Setup Dependencies
uses: './.github/actions/deps'
with:
Expand All @@ -25,8 +23,8 @@ jobs:
run: echo $'source \'https://rubygems.org\'\ngem \'mdl\', \'~> 0.12.0\'' > Gemfile
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Not needed with a .ruby-version file
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install Pre-commit dependencies
run: poetry poe install
run: poetry run poe install
- uses: pre-commit/action@v3.0.0
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -25,7 +25,7 @@ jobs:
python-version: '3.11'

- name: Run Security Check
run: poetry poe security
run: poetry run poe security

- name: Get Python Module Version
run: |
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4

- name: Setup Dependencies
uses: './.github/actions/deps'
Expand All @@ -25,11 +23,11 @@ jobs:

- name: Run Styling Enforcement
shell: bash
run: poetry poe check
run: poetry run poe check

- name: Run Style Linting Enforcement
shell: bash
run: poetry poe lint
run: poetry run poe lint

unit-tests:
name: Run Unit Tests
Expand All @@ -40,9 +38,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4

- name: Setup Dependencies
uses: './.github/actions/deps'
Expand All @@ -51,7 +47,7 @@ jobs:

- name: Run Tests
shell: bash
run: poetry poe test
run: poetry run poe test

- name: Codecov
uses: codecov/codecov-action@v3
Expand All @@ -61,9 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4

- name: Setup Dependencies
uses: './.github/actions/deps'
Expand All @@ -72,4 +66,4 @@ jobs:

- name: Run Security Checks
shell: bash
run: poetry poe security
run: poetry run poe security
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ repos:

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

- repo: https://github.com/psf/black
rev: bf7a16254ec96b084a6caf3d435ec18f0f245cc7 # frozen: 23.3.0
rev: e87737140f32d3cd7c44ede75f02dcd58e55820e # frozen: 23.9.1
hooks:
- id: black
language_version: python3.11
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ poetry install
### Run tests

```bash
poetry poe test
# or: poetry run poe test
poetry run poe test
```
818 changes: 425 additions & 393 deletions poetry.lock

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,26 +161,26 @@ python = "^3.8"
typer = {extras = ["all"], version = "^0.9.0"}

[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
coverage = "^7.2.7"
coverage = "^7.3.1"

[tool.poetry.group.dev.dependencies]
isort = {extras = ["toml"], version = "^5.12.0"}
black = "^23.3.0"
mypy = "^1.4.1"
debugpy = "^1.6.7"
ruff = "^0.0.277"
poethepoet = "^0.20.0"
black = "^23.9.1"
mypy = "^1.5.1"
debugpy = "^1.8.0"
ruff = "^0.0.290"
poethepoet = "^0.22.1"

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

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

[build-system]
requires = ["poetry-core"]
Expand Down