Skip to content

Commit

Permalink
Initial aioradio commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tim.reichard committed Oct 13, 2020
1 parent 9e9e0a8 commit 925a57a
Show file tree
Hide file tree
Showing 36 changed files with 2,869 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = aioradio/tests/*
34 changes: 34 additions & 0 deletions .github/workflows/.pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: pre-commit

on:
pull_request:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8.5'
architecture: 'x64'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Run Pre-Commit
uses: pre-commit/[email protected]

- name: Linting-Testing
run: |
pip install -r aioradio/requirements.txt
pylint aioradio/*.py aioradio/tests/*.py
pytest -vss --github=true --cov=aioradio --cov-config=.coveragerc --cov-report html --cov-fail-under=70
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
env
htmlcov
.coverage
.pytest_cache
.vscode
__pycache__
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: name-tests-test
- id: requirements-txt-fixer
- id: trailing-whitespace
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[FORMAT]
max-line-length=140
Loading

0 comments on commit 925a57a

Please sign in to comment.