Skip to content

Commit bb02766

Browse files
committed
Fix lints, add missing __init__.py file
1 parent 68489ae commit bb02766

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*.rd[as]
1111

1212
# Python
13+
._version.py
1314
__pycache__/
1415
.pytest_cache/
1516
.Python

bumpchanges/__init__.py

Whitespace-only changes.

bumpchanges/changelog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import logging
66
import re
77

8-
from pathlib import Path
9-
from typing import ClassVar
108
from dataclasses import dataclass, field
9+
from pathlib import Path
10+
from typing import ClassVar, Optional
1111

1212
import mdformat
1313
from markdown_it import MarkdownIt
@@ -93,8 +93,8 @@ class Version:
9393
)
9494

9595
version: str
96-
date: str | None = None
97-
link: str | None = None
96+
date: Optional[str] = None
97+
link: Optional[str] = None
9898

9999
# This is a CommonChangelog modification
100100
notices: list = field(default_factory=list)

bumpchanges/logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def notice(self, msg, *args, **kwargs):
1616

1717
class GHAFilter(logging.Filter):
1818
"A logging filter that plays nice with GitHub Actions output."
19+
# pylint: disable=too-few-public-methods
1920

2021
prefixes = {
2122
logging.DEBUG: "::debug::",

0 commit comments

Comments
 (0)