Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Sep 15, 2024
1 parent 48ec012 commit c64f490
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pypinyin/__pyinstaller/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# reference: https://github.com/pyinstaller/hooksample/blob/master/src/pyi_hooksample/__pyinstaller/__init__.py
# reference: https://github.com/pyinstaller/hooksample/blob/master/src/pyi_hooksample/__pyinstaller/__init__.py # noqa

import os


def get_hook_dirs():
return [os.path.dirname(__file__)]

4 changes: 4 additions & 0 deletions pypinyin/__pyinstaller/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from typing import Text, List


def get_hook_dirs() -> List[Text]: ...
8 changes: 4 additions & 4 deletions pypinyin/__pyinstaller/hook-pypinyin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# reference: https://github.com/pyinstaller/hooksample/blob/master/src/pyi_hooksample/__pyinstaller/hook-pyi_hooksample.py
# reference: https://github.com/pyinstaller/hooksample/blob/master/src/pyi_hooksample/__pyinstaller/hook-pyi_hooksample.py # noqa

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('pypinyin', excludes=['__pyinstaller'])
from PyInstaller.utils.hooks import collect_data_files # type: ignore

datas = collect_data_files(
'pypinyin', excludes=['__pyinstaller'])
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pygments>=2.7.4 # not directly required, pinned by Snyk to avoid a vulnerability
pytest
pytest-cov
pytest-random-order
setuptools
Sphinx>=3.0.4
tox
twine
wheel>=0.21
setuptools

0 comments on commit c64f490

Please sign in to comment.