Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
[*] Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Dec 18, 2023
1 parent 30d791e commit 6a947d5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.8, 3.9, 3.10.0 ]
python-version: [ 3.11.0 ]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -24,6 +24,7 @@ jobs:
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade -e .[dev]
- name: Build
Expand All @@ -46,7 +47,7 @@ jobs:
twine check dist/*
- name: Publish to PyPI
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ exclude_lines =
ignore_errors = True

[pylint]
logging-fstring-interpolation = False
logging-format-style = new
logging-format-interpolation = False
logging-format-style = fstring
max-line-length = 160
disable =
W0105, # String statement has no effect -> using docstrings
Expand Down
4 changes: 2 additions & 2 deletions unidown_mr_de/link_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class MrLinkItem(LinkItem):
"""
Own link item with additional size and type information.
"""
def __init__(self, name: str, time: datetime, type: str, size: int):
def __init__(self, name: str, time: datetime, type_: str, size: int):
super().__init__(name, time)
self.type: str = type
self.type: str = type_
self.size: int = size

def __repr__(self) -> str:
Expand Down
4 changes: 2 additions & 2 deletions unidown_mr_de/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Plugin(APlugin):
"""
Plugin class, derived from APlugin.
"""
_info = PluginInfo('mr_de', meta.VERSION, 'www.mobileread.com')
_INFO = PluginInfo('mr_de', meta.VERSION, 'www.mobileread.com')

def __init__(self, settings: Settings, options: Dict[str, Any] = None):
super().__init__(settings, options)
Expand Down Expand Up @@ -83,7 +83,7 @@ def _create_download_data(self) -> LinkItemDict:
if len(content_success) == 0:
raise PluginException("No content thread was downloaded successful.")

# extract attachmend links
# extract attachment links
attach_list = self._extract_content(attach_list, content_success)
# generate attachment links, with file size and type
attach_dict = self._create_attach_link_item_dict(attach_list)
Expand Down

0 comments on commit 6a947d5

Please sign in to comment.