Skip to content
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Lint with flake8
run: |
flake8 repertorio/
- name: Format with black
run: |
black --check repertorio/
- name: Test with pytest
run: |
pytest --cov=repertorio/
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: stable
rev: 22.3.0
hooks:
- id: black
language_version: python3.7
language_version: python3.10

- repo: https://gitlab.com/pycqa/flake8
rev: 'master'
rev: 4.0.1
hooks:
- id: flake8
25 changes: 0 additions & 25 deletions Pipfile

This file was deleted.

660 changes: 0 additions & 660 deletions Pipfile.lock

This file was deleted.

4 changes: 4 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r test-requirements.txt
black==22.3.0
flake8==4.0.1
pre-commit==2.19.0
2 changes: 0 additions & 2 deletions repertorio/repertorio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

"""A setlist.fm API wrapper"""
import logging
from typing import Any, Callable, Dict, Optional
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests==2.27.1
6 changes: 6 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-r requirements.txt
pytest==7.1.2
pytest-cov==3.0.0
mypy==0.950
types-requests==2.27.25
coveralls==3.3.1
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py37
envlist = py310

[testenv]
deps = pipenv
deps = pip
commands =
pipenv install --dev
pip install -r test-requirements.txt
mypy repertorio
pytest --cov=repertorio/
- coveralls
Expand Down