Skip to content

Commit

Permalink
v23.10.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Vedrilla committed Nov 6, 2023
1 parent 9ef9a51 commit 277c46a
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
rev: v0.1.4
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

**23.10.8 (2023-11-06)**
* Minimum coverage new configurable
* Added `flake8-todo` to Ruff rules

**23.10.7 (2023-11-03)**
* Fixed bug in coverage configuration

Expand Down
2 changes: 1 addition & 1 deletion ambient_package_update/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Ambient package update tool for clean and swift maintenance"""

__version__ = "23.10.7"
__version__ = "23.10.8"
1 change: 1 addition & 0 deletions ambient_package_update/metadata/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class PackageMetadata:
dependencies: list[str]
supported_django_versions: list[str]
supported_python_versions: list[str]
min_coverage: float = 100.0
license: str = LICENSE_MIT
license_year: int = datetime.datetime.now(tz=datetime.UTC).year
optional_dependencies: dict[str, list[str]] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
- name: Combine coverage and fail if it's <100%
run: |
python -m coverage html --skip-covered --skip-empty
python -m coverage report --fail-under=100
python -m coverage report --fail-under={{ min_coverage }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
rev: v0.1.4
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion ambient_package_update/templates/README.md.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![PyPI release](https://img.shields.io/pypi/v/{{ package_name|replace("_", "-") }}.svg)](https://pypi.org/project/{{ package_name|replace("_", "-") }}/)
[![Downloads](https://static.pepy.tech/badge/{{ package_name|replace("_", "-") }})](https://pepy.tech/project/{{ package_name|replace("_", "-") }})
[![Coverage](https://img.shields.io/badge/Coverage-100%25-success)](https://github.com/ambient-innovation/{{ package_name|replace("_", "-") }}/actions?workflow=CI)
[![Coverage](https://img.shields.io/badge/Coverage-{{ min_coverage }}%25-success)](https://github.com/ambient-innovation/{{ package_name|replace("_", "-") }}/actions?workflow=CI)
[![Linting](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Coding Style](https://img.shields.io/badge/code%20style-Ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Documentation Status](https://readthedocs.org/projects/{{ package_name|replace("_", "-") }}/badge/?version=latest)](https://{{ package_name|replace("_", "-") }}.readthedocs.io/en/latest/?badge=latest)
Expand Down
2 changes: 2 additions & 0 deletions ambient_package_update/templates/pyproject.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ select = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
# "FBT", # Protects you from the "boolean trap bug"
Expand All @@ -81,6 +82,7 @@ fixable = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
# "FBT", # Protects you from the "boolean trap bug"
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ select = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
"FBT", # Protects you from the "boolean trap bug"
Expand Down Expand Up @@ -86,6 +87,7 @@ fixable = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
"FBT", # Protects you from the "boolean trap bug"
Expand Down

0 comments on commit 277c46a

Please sign in to comment.