Skip to content

Commit e0e13b6

Browse files
committed
Add critical log level to package namespace
1 parent 6a06bb9 commit e0e13b6

File tree

10 files changed

+65
-53
lines changed

10 files changed

+65
-53
lines changed

.github/workflows/main.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: main
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ['3.8', '3.9', '3.10', '3.11']
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- uses: Gr1N/setup-poetry@v8
22+
23+
- name: Check dependencies
24+
run: make doctor
25+
26+
- uses: actions/cache@v2
27+
with:
28+
path: .venv
29+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
30+
31+
- name: Install dependencies
32+
run: make install
33+
34+
- name: Check code
35+
run: make check
36+
37+
- name: Test code
38+
run: make test
39+
40+
- name: Upload coverage
41+
uses: codecov/codecov-action@v4
42+
if: steps.fork-check.outputs.is-fork == 'false'
43+
with:
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
fail_ci_if_error: true

.tool-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python 3.11.5
2-
poetry 1.7.0
1+
python 3.11.9
2+
poetry 1.8.3

.travis.yml

-38
This file was deleted.

.verchew.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ version = 1
1717

1818
cli = dot
1919
cli_version_arg = -V
20-
version = 7 || 8 || 9
20+
version = graphviz
2121
optional = true
2222
message = This is only needed to generate UML diagrams for documentation.

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 2.3.1 (2024-10-24)
4+
5+
- Added `CRITICAL` log level to the package namespace.
6+
37
## 2.3 (2023-12-09)
48

59
- Added automatic formatting for dataclasses.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
A minimalistic logging wrapper for Python.
44

5-
[![Unix Build Status](https://img.shields.io/travis/com/jacebrowning/minilog.svg?label=unix)](https://travis-ci.com/jacebrowning/minilog)
6-
[![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/minilog.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/minilog)
7-
[![Coverage Status](https://img.shields.io/coveralls/jacebrowning/minilog/main.svg)](https://coveralls.io/r/jacebrowning/minilog)
5+
[![Linux Build](https://img.shields.io/github/actions/workflow/status/jacebrowning/minilog/main.yml?branch=main&label=linux)](https://github.com/jacebrowning/minilog/actions)
6+
[![Windows Build](https://img.shields.io/appveyor/ci/jacebrowning/minilog/main.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/minilog)
7+
[![Code Coverage](https://img.shields.io/codecov/c/github/jacebrowning/minilog)](https://codecov.io/gh/jacebrowning/minilog)
88
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/jacebrowning/minilog.svg)](https://scrutinizer-ci.com/g/jacebrowning/minilog)
99
[![PyPI License](https://img.shields.io/pypi/l/minilog.svg)](https://pypi.org/project/minilog)
1010
[![PyPI Version](https://img.shields.io/pypi/v/minilog.svg)](https://pypi.org/project/minilog)

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mkdocs==1.2.3 ; python_version >= "3.8" and python_version < "4.0"
22
pygments==2.15.0 ; python_version >= "3.8" and python_version < "4.0"
3-
jinja2==3.0.1 ; python_version >= "3.8" and python_version < "4.0"
3+
jinja2==3.0.3 ; python_version >= "3.8" and python_version < "4.0"

log/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=wildcard-import
22

3-
from logging import DEBUG, ERROR, INFO, WARNING
3+
from logging import CRITICAL, DEBUG, ERROR, INFO, WARNING
44

55
from .helpers import *
66
from .logger import *

poetry.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "minilog"
4-
version = "2.3"
4+
version = "2.3.1"
55
description = "Minimalistic wrapper for Python logging."
66

77
license = "MIT"
@@ -64,6 +64,7 @@ coveragespace = "^6.0.1"
6464
# Documentation
6565
mkdocs = "~1.2"
6666
pygments = "^2.15.0"
67+
jinja2 = "~3.0"
6768

6869
# Tooling
6970
pyinstaller = "*"

0 commit comments

Comments
 (0)