Skip to content

Commit

Permalink
Merge pull request #1 from Living-with-machines/develop
Browse files Browse the repository at this point in the history
Prep for v0.1.0 release
  • Loading branch information
thobson88 authored Aug 9, 2023
2 parents 3a3ff11 + 2025dd7 commit 8170f44
Show file tree
Hide file tree
Showing 24 changed files with 4,645 additions and 154 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
ignore = E203, W503
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ dmypy.json

# IDE stuff
.vscode/

# jisc_wrangler Working files
jw_*
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
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
Loading

0 comments on commit 8170f44

Please sign in to comment.