Skip to content

Instantly share code, notes, and snippets.

@mineo
Last active January 13, 2019 09:31
Show Gist options
  • Save mineo/39700c2f6408bd85f3430bb3c57be9bb to your computer and use it in GitHub Desktop.
Save mineo/39700c2f6408bd85f3430bb3c57be9bb to your computer and use it in GitHub Desktop.
************* Module picard.similarity
picard/similarity.py:55: [R1704(redefined-argument-from-local), similarity2] Redefining argument with the local name 'a'
picard/similarity.py:58: [R1704(redefined-argument-from-local), similarity2] Redefining argument with the local name 'b'
************* Module picard.cluster
picard/cluster.py:551: [R0201(no-self-use), ClusterEngine.can_refresh] Method could be a function
************* Module picard.track
picard/track.py:241: [R0201(no-self-use), Track._get_ignored_folksonomy_tags] Method could be a function
************* Module picard.file
picard/file.py:103: [W0221(arguments-differ), File.load] Parameters differ from overridden 'load' method
picard/file.py:389: [R0201(no-self-use), File._save_images] Method could be a function
************* Module picard.config
picard/config.py:260: [E0202(method-hidden), BoolOption.convert] An attribute defined in picard.config line 244 hides this method
picard/config.py:287: [E0202(method-hidden), IntListOption.convert] An attribute defined in picard.config line 244 hides this method
************* Module picard.tagger
picard/tagger.py:592: [R0201(no-self-use), Tagger.get_files_from_objects] Method could be a function
picard/tagger.py:736: [R0201(no-self-use), Tagger.autotag] Method could be a function
picard/tagger.py:781: [R0201(no-self-use), Tagger.refresh] Method could be a function
************* Module picard.oauth
picard/oauth.py:48: [R0201(no-self-use), OAuthManager.is_authorized] Method could be a function
picard/oauth.py:60: [R0201(no-self-use), OAuthManager.forget_refresh_token] Method could be a function
picard/oauth.py:64: [R0201(no-self-use), OAuthManager.forget_access_token] Method could be a function
picard/oauth.py:80: [R0201(no-self-use), OAuthManager.get_authorization_url] Method could be a function
picard/oauth.py:89: [R0201(no-self-use), OAuthManager.set_refresh_token] Method could be a function
picard/oauth.py:94: [R0201(no-self-use), OAuthManager.set_access_token] Method could be a function
picard/oauth.py:99: [R0201(no-self-use), OAuthManager.set_username] Method could be a function
************* Module picard.plugin
picard/plugin.py:368: [R0201(no-self-use), PluginManager._get_existing_paths] Method could be a function
picard/plugin.py:508: [R0201(no-self-use), PluginManager.enabled] Method could be a function
************* Module picard.util.webbrowser2
picard/util/webbrowser2.py:32: [W0105(pointless-string-statement), ] String statement has no effect
************* Module picard.util.bytes2human
picard/util/bytes2human.py:29: [W0105(pointless-string-statement), ] String statement has no effect
************* Module picard.coverart.image
picard/coverart/image.py:317: [R0201(no-self-use), CoverArtImage._next_filename] Method could be a function
************* Module picard.coverart.providers.caa_release_group
picard/coverart/providers/caa_release_group.py:50: [E1003(bad-super-call), CoverArtProviderCaaReleaseGroup.enabled] Bad first argument 'CoverArtProviderCaa' given to super()
************* Module picard.coverart
picard/coverart/__init__.py:158: [W0150(lost-exception), CoverArt.next_in_queue] return statement in finally block may swallow exception
picard/coverart/__init__.py:228: [R0201(no-self-use), CoverArt._message] Method could be a function
************* Module picard.browser.filelookup
picard/browser/filelookup.py:57: [R0201(no-self-use), FileLookup.launch] Method could be a function
************* Module picard.coverart.providers.caa
picard/coverart/providers/caa.py:356: [R0201(no-self-use), CAATypesSelectorDialog.help] Method could be a function
************* Module picard.formats.asf
picard/formats/asf.py:234: [E1120(no-value-for-parameter), ASFFile._save] No value for argument 'filething' in method call
************* Module picard.formats.mutagenext.tak
picard/formats/mutagenext/tak.py:45: [R0201(no-self-use), TAKInfo.pprint] Method could be a function
picard/formats/mutagenext/tak.py:55: [R0203(no-staticmethod-decorator), TAK] Consider using a decorator instead of calling staticmethod
************* Module picard.webservice.api_helpers
picard/webservice/api_helpers.py:211: [R0201(no-self-use), MBAPIHelper._collection_request] Method could be a function
picard/webservice/api_helpers.py:217: [R0201(no-self-use), MBAPIHelper._get_client_queryarg] Method could be a function
picard/webservice/api_helpers.py:237: [R0201(no-self-use), AcoustIdAPIHelper._encode_acoustid_args] Method could be a function
************* Module picard.ui.filebrowser
picard/ui/filebrowser.py:140: [R0201(no-self-use), FileBrowser._get_destination_from_path] Method could be a function
************* Module picard.webservice
picard/webservice/__init__.py:218: [W0221(arguments-differ), WSGetRequest._init_headers] Parameters differ from overridden '_init_headers' method
picard/webservice/__init__.py:229: [W0221(arguments-differ), WSPutRequest._init_headers] Parameters differ from overridden '_init_headers' method
picard/webservice/__init__.py:238: [W0221(arguments-differ), WSDeleteRequest._init_headers] Parameters differ from overridden '_init_headers' method
picard/webservice/__init__.py:247: [W0221(arguments-differ), WSPostRequest._init_headers] Parameters differ from overridden '_init_headers' method
************* Module picard.formats.id3
picard/formats/id3.py:202: [R0201(no-self-use), ID3File.build_TXXX] Method could be a function
picard/formats/id3.py:565: [R0201(no-self-use), ID3File._get_tags] Method could be a function
picard/formats/id3.py:571: [R0201(no-self-use), ID3File._save_tags] Method could be a function
************* Module picard.ui.metadatabox
picard/ui/metadatabox.py:578: [R0201(no-self-use), MetadataBox.set_item_value] Method could be a function
************* Module picard.ui.coverartbox
picard/ui/coverartbox.py:69: [R0201(no-self-use), ActiveLabel.dragEnterEvent] Method could be a function
picard/ui/coverartbox.py:475: [R0201(no-self-use), CoverArtBox.set_load_image_behavior] Method could be a function
************* Module picard.ui.itemviews
picard/ui/itemviews.py:404: [C0123(unidiomatic-typecheck), BaseTreeView.contextMenuEvent] Using type() instead of isinstance() for a typecheck.
picard/ui/itemviews.py:461: [R0201(no-self-use), BaseTreeView.supportedDropActions] Method could be a function
picard/ui/itemviews.py:464: [R0201(no-self-use), BaseTreeView.mimeTypes] Method could be a function
picard/ui/itemviews.py:468: [R0201(no-self-use), BaseTreeView.dragEnterEvent] Method could be a function
picard/ui/itemviews.py:488: [R0201(no-self-use), BaseTreeView.mimeData] Method could be a function
************* Module picard.ui.item
picard/ui/item.py:23: [R0201(no-self-use), Item.can_save] Method could be a function
picard/ui/item.py:27: [R0201(no-self-use), Item.can_remove] Method could be a function
picard/ui/item.py:31: [R0201(no-self-use), Item.can_edit_tags] Method could be a function
picard/ui/item.py:35: [R0201(no-self-use), Item.can_analyze] Method could be a function
picard/ui/item.py:39: [R0201(no-self-use), Item.can_autotag] Method could be a function
picard/ui/item.py:43: [R0201(no-self-use), Item.can_refresh] Method could be a function
picard/ui/item.py:47: [R0201(no-self-use), Item.can_view_info] Method could be a function
picard/ui/item.py:55: [R0201(no-self-use), Item.can_browser_lookup] Method could be a function
picard/ui/item.py:58: [R0201(no-self-use), Item.is_album_like] Method could be a function
************* Module picard.ui.mainwindow
picard/ui/mainwindow.py:564: [R0201(no-self-use), MainWindow.toggle_rename_files] Method could be a function
picard/ui/mainwindow.py:567: [R0201(no-self-use), MainWindow.toggle_move_files] Method could be a function
picard/ui/mainwindow.py:570: [R0201(no-self-use), MainWindow.toggle_tag_saving] Method could be a function
picard/ui/mainwindow.py:853: [R0201(no-self-use), MainWindow.show_help] Method could be a function
picard/ui/mainwindow.py:866: [R0201(no-self-use), MainWindow.open_bug_report] Method could be a function
picard/ui/mainwindow.py:869: [R0201(no-self-use), MainWindow.open_support_forum] Method could be a function
picard/ui/mainwindow.py:872: [R0201(no-self-use), MainWindow.open_donation_page] Method could be a function
picard/ui/mainwindow.py:891: [R0201(no-self-use), MainWindow._openUrl] Method could be a function
************* Module picard.ui.infodialog
picard/ui/infodialog.py:239: [R0201(no-self-use), InfoDialog.show_item] Method could be a function
picard/ui/infodialog.py:256: [E0602(undefined-variable), format_file_info] Undefined variable 'bytes1human'
************* Module picard.ui.options.interface
picard/ui/options/interface.py:296: [E0602(undefined-variable), AddActionDialog.__init__] Undefined variable 'temp_list'
************* Module picard.ui.options.dialog
picard/ui/options/dialog.py:146: [R0201(no-self-use), OptionsDialog.help] Method could be a function
picard/ui/options/dialog.py:184: [R0201(no-self-use), OptionsDialog._show_dialog] Method could be a function
************* Module picard.ui.options.plugins
picard/ui/options/plugins.py:642: [R0201(no-self-use), PluginsOptionsPage.mimeTypes] Method could be a function
picard/ui/options/plugins.py:645: [R0201(no-self-use), PluginsOptionsPage.dragEnterEvent] Method could be a function
************* Module picard.ui.options.fingerprinting
picard/ui/options/fingerprinting.py:105: [R0201(no-self-use), FingerprintingOptionsPage.acoustid_fpcalc_download] Method could be a function
picard/ui/options/fingerprinting.py:108: [R0201(no-self-use), FingerprintingOptionsPage.acoustid_apikey_get] Method could be a function
************* Module picard.ui.options.renaming
picard/ui/options/renaming.py:231: [R0201(no-self-use), RenamingOptionsPage.example_1] Method could be a function
picard/ui/options/renaming.py:258: [R0201(no-self-use), RenamingOptionsPage.example_2] Method could be a function
************* Module picard.ui.options.network
picard/ui/options/network.py:84: [R0201(no-self-use), NetworkOptionsPage.change_browser_integration_port] Method could be a function
************* Module picard.ui.options.releases
picard/ui/options/releases.py:242: [R0201(no-self-use), ReleasesOptionsPage._move_selected_items] Method could be a function
picard/ui/options/releases.py:248: [R0201(no-self-use), ReleasesOptionsPage._load_list_items] Method could be a function
picard/ui/options/releases.py:274: [R0201(no-self-use), ReleasesOptionsPage._save_list_items] Method could be a function
************* Module test.test_bytes2human
test/test_bytes2human.py:64: [R0201(no-self-use), Testbytes2human._create_testlist] Method could be a function
test/test_bytes2human.py:79: [R0201(no-self-use), Testbytes2human._save_expected_to] Method could be a function
test/test_bytes2human.py:84: [R0201(no-self-use), Testbytes2human._read_expected_from] Method could be a function
************* Module test.test_script
test/test_script.py:501: [R0201(no-self-use), ScriptParserTest.test_optional_kwonly_parameters] Method could be a function
************* Module test.test_formats
test/test_formats.py:636: [R0201(no-self-use), TestCoverArt._common_set_up] Method could be a function
test/test_formats.py:647: [R0201(no-self-use), TestCoverArt._common_tear_down] Method could be a function
------------------------------------------------------------------
Your code has been rated at 9.94/10 (previous run: 9.94/10, +0.00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment