Skip to content

Commit

Permalink
Release v0.2.1 (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Misha Behersky <bmwant@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <noreply@github.com>
  • Loading branch information
3 people authored Jun 11, 2023
1 parent d903414 commit 2903b02
Show file tree
Hide file tree
Showing 8 changed files with 564 additions and 496 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:
- main
- release

env:
POETRY_VERSION: "1.5.1"

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -24,6 +26,8 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -35,13 +39,21 @@ jobs:
run: |
poetry install
- name: Check codestyle / formatting
- name: Check imports with isort
if: ${{ always() }}
run: |
echo "Checking imports order"
poetry run isort . --check-only
echo "Checking black codestyle"
- name: Check codestyle with black
if: ${{ always() }}
run: |
poetry run black . --check
- name: Lint code with ruff
if: ${{ always() }}
run: |
poetry run ruff check .
- name: Run unittests
run: |
poetry run pytest -sv tests
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pycqa/isort
rev: "5.10.1"
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: "22.3.0"
rev: "23.3.0"
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: "4.0.1"
rev: "6.0.0"
hooks:
- id: flake8
- repo: https://github.com/python-poetry/poetry
rev: "1.2.1"
rev: "1.5.0"
hooks:
- id: poetry-check
- id: poetry-lock
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Available sections are:

## [Unreleased]

## [v0.2.1] - 2023-06-11

### Changed

- Replace [flake8](https://flake8.pycqa.org/en/latest/) linter with [ruff](https://beta.ruff.rs/docs/)

## [v0.2.0] - 2022-11-17

### Fixed
Expand Down Expand Up @@ -103,7 +109,9 @@ Available sections are:

- Initial release.

[Unreleased]: https://github.com/bmwant/hapless/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/bmwant/hapless/compare/v0.2.1...HEAD

[v0.2.1]: https://github.com/bmwant/hapless/compare/v0.2.0...v0.2.1

[v0.2.0]: https://github.com/bmwant/hapless/compare/v0.1.10...v0.2.0

Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build:
@rm -rf build/
@poetry build


.PHONY: tests
tests:
@poetry run pytest -sv tests
Expand All @@ -18,10 +19,17 @@ coverage:
coverage-report:
@poetry run pytest --cov=hapless --cov-report=html tests


.PHONY: isort
isort:
@poetry run isort .


.PHONY: black
black:
@poetry run black .


.PHONY: lint
lint:
@poetry run ruff check .
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
![Checks](https://github.com/bmwant/hapless/actions/workflows/tests.yml/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/hapless)](https://pypi.org/project/hapless/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hapless)


[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![EditorConfig](https://img.shields.io/badge/-EditorConfig-grey?logo=editorconfig)](https://editorconfig.org/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)

Expand Down Expand Up @@ -58,10 +61,6 @@ See [CHANGELOG.md](https://github.com/bmwant/hapless/blob/main/CHANGELOG.md) for
* [Supervisor](http://supervisord.org/) full-fledged process manager.
* [podmena](https://github.com/bmwant/podmena) provides nice emoji icons to commit messages.

### Support project, support 🇺🇦 Ukraine!

🐶 `D7DA74qzZUyh9cctCxWovPTEovUSjGzL2S` this is [Dogecoin](https://dogecoin.com/) wallet to support the project.

🇺🇦 All donations will go towards supporting Ukraine in the war.
### Support 🇺🇦 Ukraine in the war!

✉️ [Contact author](mailto:bmwant@gmail.com) directly in case you want to donate with some different payment option or check what has already been done.
🇺🇦 Donate to [this foundation](https://prytulafoundation.org/en) in case you want to help. Every donation matter!
993 changes: 518 additions & 475 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hapless"
version = "0.2.0"
version = "0.2.1"
description = "Run and track processes in background"
authors = ["Misha Behersky <bmwant@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -38,6 +38,7 @@ black = "^22.3.0"
pytest = "^7.1.1"
isort = "^5.10.1"
pytest-cov = "^3.0.0"
ruff = "^0.0.272"

[tool.poetry.group.ci]
optional = true
Expand All @@ -49,7 +50,7 @@ github3-py = "^3.2.0"
hap = 'hapless.cli:cli'

[tool.poetry.urls]
"Blog post" = "https://bmwlog.pp.ua/"
"Blog post" = "https://bmwlog.pp.ua/hapless-easily-run-and-manage-background-processes/"

[tool.black]
line-length = 88
Expand Down

0 comments on commit 2903b02

Please sign in to comment.