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
5 changes: 4 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ https://success.vanillaforums.com/kb/articles/228-using-pull-requests-to-contrib


## Checklist before requesting a review
<!--- These are suggested things you could add, but what you add will be dependent on your repository's standards. --->
<!---
These are suggested things you could add, but what you add will be dependent on
your repository's standards.
--->
- [ ] The code runs successfully.

```commandline
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/format-and-fail.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Format-and-Fail
on:
push:
branches: [ main ]
pull_request:
branches:
- main
branches: [ main ]

jobs:
pre-commit:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run-Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Cache Poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.5.1
- uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root
if: steps.cache-deps.outputs.cache-hit != 'true'
- run: poetry install --no-interaction
- run: poetry run pytest
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
repos:
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
hooks:
- id: nbqa-ruff
exclude: data/
args:
- --fix
- --ignore=E721,E722
- id: nbqa-black
exclude: data/
- id: nbqa-isort
exclude: data/

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
Loading