Skip to content

Commit

Permalink
Merge pull request #22 from thorgate/chore/prepare-release
Browse files Browse the repository at this point in the history
chore: Prepare for release
  • Loading branch information
jorgenader authored Sep 21, 2022
2 parents aad130b + aa40789 commit 5abde76
Show file tree
Hide file tree
Showing 35 changed files with 435 additions and 575 deletions.
8 changes: 0 additions & 8 deletions .coveragerc

This file was deleted.

14 changes: 13 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ jobs:
run: |
python -m pip install --upgrade pip
poetry install
- name: Lint
run: |
poetry run make lint
- name: Test with tox
run: |
poetry run make test-all
poetry run make coverage
- name: Code Coverage Summary Report
uses: irongut/[email protected]
with:
filename: coverage.xml
format: 'markdown'
output: 'both'
3 changes: 2 additions & 1 deletion .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@ pylint:
- unused-argument
- raise-missing-from
options:
max-args: 8
max-line-length: 140
django-settings-module: test.django_settings
django-settings-module: tests.django_settings
3 changes: 2 additions & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ Credits
Development Lead
----------------

* Rivo Laks <rivo@thorgate.eu>
* Jyrno Ader <jyrno@thorgate.eu>

Contributors
------------

* Rivo Laks <[email protected]>
* Taavi Teska <[email protected]>
* Jorgen Ader <[email protected]>
* Sergey Kovalskiy <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
History
=======

1.0.0 (2022-07-??)
1.0.0 (2022-09-21)
------------------

* Drop support for Django < 2.2
Expand Down
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,27 @@ clean-pyc:
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +

lint:
prospector

black:
black tg_utils
@black tg_utils $(cmd)

fmt: black

prospector:
@prospector $(cmd)

black-check:
@make black cmd="--check --diff"

lint: black-check prospector

test:
pytest

test-all:
tox

test-full: test lint coverage

coverage:
pytest --cov-config .coveragerc --cov=tg_utils --cov-report html --cov-report term-missing
pytest --cov=tg_utils --cov-report xml --cov-report html --cov-report term-missing

docs:
mkdir -p docs/_static
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tg-utils
.. image:: https://img.shields.io/pypi/v/tg-utils.svg
:target: https://pypi.python.org/pypi/tg-utils

.. image:: https://github.com/thorgate/tg-react/actions/workflows/python-package.yml/badge.svg?branch=master
.. image:: https://github.com/thorgate/tg-utils/actions/workflows/python-package.yml/badge.svg?branch=master
:target: https://github.com/thorgate/tg-utils/actions

.. image:: https://readthedocs.org/projects/tg-utils/badge/?version=latest
Expand Down
Loading

0 comments on commit 5abde76

Please sign in to comment.