-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Living-with-machines/develop
Prep for v0.1.0 release
- Loading branch information
Showing
24 changed files
with
4,645 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
ignore = E203, W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
|
||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
strategy: | ||
matrix: | ||
python_version: ['3.8'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python_version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
|
||
- name: Install poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: "1.2.2" | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run main tests | ||
shell: bash | ||
run: poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,3 +130,6 @@ dmypy.json | |
|
||
# IDE stuff | ||
.vscode/ | ||
|
||
# jisc_wrangler Working files | ||
jw_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: local | ||
hooks: | ||
- id: black | ||
name: Black | ||
entry: poetry run black | ||
language: system | ||
types: ['python'] | ||
- id: isort | ||
name: isort | ||
entry: poetry run isort | ||
language: system | ||
types: ['python'] | ||
- id: safety | ||
name: Safety | ||
# Ignore pip vulnerability | ||
entry: poetry run safety check --full-report | ||
pass_filenames: false | ||
language: system | ||
- id: mypy | ||
name: MyPy | ||
entry: poetry run mypy --install-types --non-interactive | ||
language: system | ||
types: ['python'] | ||
exclude: ^tests | ||
- id: pylint | ||
name: Pylint | ||
entry: poetry run pylint --rcfile=.python-lint | ||
language: system | ||
types: ['python'] | ||
exclude: ^tests | ||
- id: flake8 | ||
name: Flake8 | ||
entry: poetry run flake8 | ||
language: system | ||
types: ['python'] | ||
exclude: ^tests |
Oops, something went wrong.