Skip to content

Commit

Permalink
Merge branch 'release-v0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fedejaure committed Oct 24, 2023
2 parents b4f7a85 + b7927f8 commit d1fd469
Show file tree
Hide file tree
Showing 18 changed files with 883 additions and 1,266 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
commit = True
tag = False
current_version = 0.7.1
current_version = 0.8.0

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: develop

Expand All @@ -19,16 +19,20 @@ jobs:
with:
python-version: 3.8

- name: Install pre-commit
run: pip install pre-commit
- name: Install system deps
shell: bash
run: |
pip install poetry
poetry config virtualenvs.in-project true
poetry install --no-root --only dev --only linters --sync
- name: Run autoupdate
run: pre-commit autoupdate
run: poetry run pre-commit autoupdate

- name: Run pre-commit
run: pre-commit run --all-files
run: poetry run pre-commit run --all-files

- uses: peter-evans/create-pull-request@v4.2.3
- uses: peter-evans/create-pull-request@v5.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore-update-pre-commit-hooks
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand All @@ -26,13 +26,13 @@ jobs:
poetry build --ansi
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
uses: pypa/gh-action-pypi-publish@v1.6.4
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
Expand All @@ -43,7 +43,7 @@ jobs:
name: Create Github Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get version from tag
id: tag_name
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Linting
- name: Install system deps
shell: bash
run: |
pip install pre-commit
pre-commit run --all-files
pip install poetry
poetry config virtualenvs.in-project true
poetry install --no-root --only dev --only linters --sync
- name: Linting
shell: bash
run: poetry run inv hooks

tests:
needs: linting
Expand All @@ -32,10 +38,10 @@ jobs:
strategy:
matrix:
os: [Ubuntu, MacOS]
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand All @@ -58,7 +64,7 @@ jobs:
run: nox --force-color -s tests-${{ matrix.python-version }}

- name: Run safety check
if: matrix.python-version == '3.10' && matrix.os == 'Ubuntu'
if: matrix.python-version == '3.11' && matrix.os == 'Ubuntu'
shell: bash
run: nox --force-color -s safety

Expand All @@ -72,7 +78,7 @@ jobs:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand All @@ -97,6 +103,6 @@ jobs:
nox --force-color --session=coverage -- --fmt xml
- name: Upload coverage report
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
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

# Pyre type checker
.pyre/

# flakeheaven
.flakeheaven_cache
9 changes: 0 additions & 9 deletions .lgtm.yml

This file was deleted.

29 changes: 11 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -11,27 +11,20 @@ repos:
- id: check-json
- id: end-of-file-fixer
- repo: https://github.com/timothycrosley/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.2.1
- repo: local
hooks:
- id: flakeheaven
additional_dependencies: [
'flake8~=4.0.1',
'flake8-builtins~=2.0.0',
'flake8-blind-except~=0.2.1',
'flake8-logging-format~=0.8.1',
'flake8-bugbear~=22.10.25',
'flake8-annotations~=2.9.1',
'flake8-docstrings~=1.6.0',
'flake8-bandit~=3.0.0',
'flake8-broken-line~=0.6.0',
'darglint~=1.8.1',
'pylint~=2.15.5',
]
name: flakeheaven
description: "`FlakeHeaven` it's a Flake8 wrapper to make it cools."
entry: poetry run flakeheaven
args: [lint]
language: system
types: [python]
require_serial: true
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.8.0] - 2023-10-24
### Added
- Python 3.11 support.

### Changed
- Update dependencies.

## [0.7.1] - 2023-01-15
### Changed
- Update dependencies.
Expand Down Expand Up @@ -64,7 +71,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- First release on PyPI.

[Unreleased]: https://github.com/fedejaure/mdns-beacon/compare/v0.7.1...develop
[Unreleased]: https://github.com/fedejaure/mdns-beacon/compare/v0.8.0...develop
[0.8.0]: https://github.com/fedejaure/mdns-beacon/compare/v0.7.1...v0.8.0
[0.7.1]: https://github.com/fedejaure/mdns-beacon/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/fedejaure/mdns-beacon/compare/v0.6.1...v0.7.0
[0.6.1]: https://github.com/fedejaure/mdns-beacon/compare/v0.6.0...v0.6.1
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/fedejaure/mdns-beacon.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fedejaure/mdns-beacon/context:python)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://www.contributor-covenant.org/version/2/0/code_of_conduct/)

</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx==6.1.3
sphinx==7.1.2
recommonmark==0.7.1
15 changes: 0 additions & 15 deletions mypy.ini

This file was deleted.

4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from nox_poetry import Session, session

nox.options.sessions = ["tests", "mypy"]
python_versions = ["3.8", "3.9", "3.10"]
python_versions = ["3.8", "3.9", "3.10", "3.11"]


@session(python=python_versions)
Expand Down Expand Up @@ -50,7 +50,7 @@ def mypy(session: Session) -> None:
session.run("inv", "mypy")


@session(python="3.10")
@session(python="3.11")
def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
session.install("invoke", "safety")
Expand Down
Loading

0 comments on commit d1fd469

Please sign in to comment.