Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5889696

Browse files
committed
make flake8 happy
1 parentfb34d52 commit5889696

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎pymystem3/mystem.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,11 @@ def analyze(self, text='', file_path=None):
299299
"""
300300
Make morphology analysis for a text.
301301
302-
:param text: text to analyze
303302
:type text: str
304-
:paramfile_path: alternative mode: if defined, file_path will be usedtoopen utf8 text file for analysis. Argument text is not used
303+
:paramtext: texttoanalyze
305304
:type file_path: str
305+
:param file_path: alternative mode: if defined, file_path will be used to open utf8 text file for analysis.
306+
Argument text is not used in this case.
306307
:returns: result of morphology analysis.
307308
:rtype: dict
308309
"""
@@ -327,10 +328,11 @@ def lemmatize(self, text='', file_path=None):
327328
"""
328329
Make morphology analysis for a text and return list of lemmas.
329330
330-
:param text: text to analyze
331331
:type text: str
332-
:paramfile_path: alternative mode: if defined, file_path will be usedtoopen utf8 text file for analysis. Argument text is not used
332+
:paramtext: texttoanalyze
333333
:type file_path: str
334+
:param file_path: alternative mode: if defined, file_path will be used to open utf8 text file for analysis.
335+
Argument text is not used in this case.
334336
:returns: list of lemmas
335337
:rtype: list
336338
"""

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _lint():
165165
project_python_files= [filenameforfilenameinget_project_files()
166166
iffilename.endswith(b'.py')]
167167
retcode=subprocess.call(
168-
['flake8','--max-complexity=12','--ignore=E265','--max-line-length=120']+project_python_files)
168+
['flake8','--max-complexity=14','--ignore=E265','--max-line-length=140']+project_python_files)
169169
ifretcode==0:
170170
print_success_message('No style errors')
171171
returnretcode

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp