fix linter warning

set linelenght for check to 142
This commit is contained in:
MarkusHackspacher 2018-09-15 20:11:18 +02:00
parent 56ab5a7890
commit 4fa86ba0b7
5 changed files with 16 additions and 11 deletions

View File

@ -2,8 +2,8 @@
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
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
max-line-length = 145
max-line-length = 142
[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

View File

@ -36,10 +36,12 @@ class gPodderExtension:
MIME_TYPES = ('audio/x-m4a', 'audio/mp4', 'audio/mp4a-latm', 'audio/ogg', 'audio/opus')
EXT = ('.m4a', '.ogg', '.opus')
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'],
'.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']
}
}

View File

@ -2755,7 +2755,10 @@ class gPodder(BuilderWidget, dbus.service.Object):
if not episodes:
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)
return False

View File

@ -1272,6 +1272,7 @@ def check_root_folder_path():
+ 1 + PodcastChannel.MAX_FOLDERNAME_LENGTH \
+ 1 + PodcastEpisode.MAX_FILENAME_LENGTH + 5 # eg. .opus
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.")
return None

View File

@ -3,17 +3,15 @@
Prepare release and upload Windows and macOS artifacts
"""
import argparse
import difflib
import glob
import hashlib
import os
import sys
import re
import sys
from github3 import login
from jinja2 import Template
import magic
import requests
from github3 import login
from jinja2 import Template
def debug_requests():
@ -94,6 +92,7 @@ def checksums():
ret[os.path.basename(archive)] = dict(md5=m.hexdigest(), sha256=s.hexdigest())
return ret
def get_contributors(tag, previous_tag):
"""
list contributor logins '@...' for every commit in range