Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Oct 7, 2024
2 parents d7e8f1f + 1f8e6b5 commit 1585dca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,5 @@ dmypy.json
.vscode/

src/_your_package_version.py

src/_ebd_toolchain_version.py
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[project]
name = "your-favourite-package-name"
description = "Description of your package"
name = "ebd-toolchain"
description = "Combines the features of ebdamame and rebdhuhn to automatically generate SVGs from EBD.docx files"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [{ name = "your name", email = "your@email.address" }]
keywords = ["your", "important", "keywords"]
authors = [{ name = "Hochfrequenz Unternehmensberatung GmbH", email = "info+github@hochfrequenz.de" }]
keywords = ["EBD", "rebdhuhn", "ebdamame", "scraping", "python-docx", "kroki", "entscheidungsbaumdiagramm"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
Expand Down Expand Up @@ -35,8 +35,8 @@ tests = ["pytest==8.3.3"]
type_check = ["mypy==1.11.2"]

[project.urls]
Changelog = "https://github.com/Hochfrequenz/python_template_repository/releases"
Homepage = "https://github.com/Hochfrequenz/python_template_repository"
Changelog = "https://github.com/Hochfrequenz/ebd_toolchain/releases"
Homepage = "https://github.com/Hochfrequenz/ebd_toolchain"

[tool.black]
line-length = 120
Expand All @@ -53,7 +53,7 @@ max-line-length = 120
truethy-bool = true

[tool.mypy]
disable_error_code = ["no-untyped-def", "no-untyped-call"]
disable_error_code = []

[project.scripts]
scrape_and_plot = "ebd_toolchain.main:main"
Expand All @@ -74,7 +74,7 @@ fragments = [{ path = "README.md" }]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/_your_package_version.py"
version-file = "src/_ebd_toolchain_version.py"
template = '''
version = "{version}"
'''
Expand Down
2 changes: 1 addition & 1 deletion src/ebd_toolchain/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _dump_json(json_path: Path, ebd_table: EbdTable) -> None:
help="Choose which file you'd like to create",
)
# pylint:disable=too-many-locals, too-many-branches, too-many-statements,
def main(input_path: Path, output_path: Path, export_types: list[Literal["puml", "dot", "json", "svg"]]):
def main(input_path: Path, output_path: Path, export_types: list[Literal["puml", "dot", "json", "svg"]]) -> None:
"""
A program to get a machine-readable version of the AHBs docx files published by edi@energy.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/ebd_toolchain/mymodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MyClass: # pylint: disable=too-few-public-methods
This is a docstring for the class.
"""

def __init__(self):
def __init__(self) -> None:
"""
Initialize for the sake of initializing
"""
Expand Down
2 changes: 1 addition & 1 deletion unittests/test_myclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class TestMyClass:
A class with pytest unit tests.
"""

def test_something(self):
def test_something(self) -> None:
my_class = MyClass()
assert my_class.do_something() == "abc"

0 comments on commit 1585dca

Please sign in to comment.