fix linter warning
set linelenght for check to 142
This commit is contained in:
parent
56ab5a7890
commit
4fa86ba0b7
|
@ -2,8 +2,8 @@
|
||||||
count=1
|
count=1
|
||||||
select = W1, W2, W3, E11, E121, E122, E123, E124, E125, E127, E129, E13, E2, E3, E401, E5, E703, E711, E712, E713, E721, E731, E74, E9
|
select = W1, W2, W3, E11, E121, E122, E123, E124, E125, E127, E129, E13, E2, E3, E401, E5, E703, E711, E712, E713, E721, E731, E74, E9
|
||||||
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
|
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
|
||||||
max-line-length = 145
|
max-line-length = 142
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
known_third_party=dbus,gi,mutagen,cairo,requests
|
known_third_party=dbus,gi,mutagen,cairo,requests,github3,jinja2,magic
|
||||||
known_first_party=gpodder,soco
|
known_first_party=gpodder,soco
|
||||||
|
|
|
@ -36,10 +36,12 @@ class gPodderExtension:
|
||||||
MIME_TYPES = ('audio/x-m4a', 'audio/mp4', 'audio/mp4a-latm', 'audio/ogg', 'audio/opus')
|
MIME_TYPES = ('audio/x-m4a', 'audio/mp4', 'audio/mp4a-latm', 'audio/ogg', 'audio/opus')
|
||||||
EXT = ('.m4a', '.ogg', '.opus')
|
EXT = ('.m4a', '.ogg', '.opus')
|
||||||
CMD = {'avconv': {'.mp3': ['-i', '%(old_file)s', '-q:a', '2', '-id3v2_version', '3', '-write_id3v1', '1', '%(new_file)s'],
|
CMD = {'avconv': {'.mp3': ['-i', '%(old_file)s', '-q:a', '2', '-id3v2_version', '3', '-write_id3v1', '1', '%(new_file)s'],
|
||||||
'.ogg': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s'], '.opus': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s']
|
'.ogg': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s'],
|
||||||
|
'.opus': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s']
|
||||||
},
|
},
|
||||||
'ffmpeg': {'.mp3': ['-i', '%(old_file)s', '-q:a', '2', '-id3v2_version', '3', '-write_id3v1', '1', '%(new_file)s'],
|
'ffmpeg': {'.mp3': ['-i', '%(old_file)s', '-q:a', '2', '-id3v2_version', '3', '-write_id3v1', '1', '%(new_file)s'],
|
||||||
'.ogg': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s'], '.opus': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s']
|
'.ogg': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s'],
|
||||||
|
'.opus': ['-i', '%(old_file)s', '-q:a', '2', '%(new_file)s']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2755,7 +2755,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
|
||||||
|
|
||||||
if not episodes:
|
if not episodes:
|
||||||
title = _('Episodes are locked')
|
title = _('Episodes are locked')
|
||||||
message = _('The selected episodes are locked. Please unlock the episodes that you want to delete before trying to delete them.')
|
message = _(
|
||||||
|
'The selected episodes are locked. Please unlock the '
|
||||||
|
'episodes that you want to delete before trying '
|
||||||
|
'to delete them.')
|
||||||
self.notification(message, title, widget=self.treeAvailable)
|
self.notification(message, title, widget=self.treeAvailable)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -1272,6 +1272,7 @@ def check_root_folder_path():
|
||||||
+ 1 + PodcastChannel.MAX_FOLDERNAME_LENGTH \
|
+ 1 + PodcastChannel.MAX_FOLDERNAME_LENGTH \
|
||||||
+ 1 + PodcastEpisode.MAX_FILENAME_LENGTH + 5 # eg. .opus
|
+ 1 + PodcastEpisode.MAX_FILENAME_LENGTH + 5 # eg. .opus
|
||||||
if longest > 260:
|
if longest > 260:
|
||||||
return _("Warning: path to gPodder home (%(root)s) is very long and can result in failure to download files.\n" % {"root": root}) \
|
return _("Warning: path to gPodder home (%(root)s) is very long "
|
||||||
|
"and can result in failure to download files.\n" % {"root": root}) \
|
||||||
+ _("You're advised to set it to a shorter path.")
|
+ _("You're advised to set it to a shorter path.")
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -3,17 +3,15 @@
|
||||||
Prepare release and upload Windows and macOS artifacts
|
Prepare release and upload Windows and macOS artifacts
|
||||||
"""
|
"""
|
||||||
import argparse
|
import argparse
|
||||||
import difflib
|
|
||||||
import glob
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
from github3 import login
|
|
||||||
from jinja2 import Template
|
|
||||||
import magic
|
import magic
|
||||||
import requests
|
import requests
|
||||||
|
from github3 import login
|
||||||
|
from jinja2 import Template
|
||||||
|
|
||||||
|
|
||||||
def debug_requests():
|
def debug_requests():
|
||||||
|
@ -94,6 +92,7 @@ def checksums():
|
||||||
ret[os.path.basename(archive)] = dict(md5=m.hexdigest(), sha256=s.hexdigest())
|
ret[os.path.basename(archive)] = dict(md5=m.hexdigest(), sha256=s.hexdigest())
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
def get_contributors(tag, previous_tag):
|
def get_contributors(tag, previous_tag):
|
||||||
"""
|
"""
|
||||||
list contributor logins '@...' for every commit in range
|
list contributor logins '@...' for every commit in range
|
||||||
|
|
Loading…
Reference in a new issue