Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 01 Jan 2023 18:05:20 UTC Commit: f76dddce4bbcbb32f8efb9ba7823b948f5b04681 https://github.com/geany/www.geany.org/commit/f76dddce4bbcbb32f8efb9ba7823b9...
Log Message: ----------- Fix linting and pylint configuration
Modified Paths: -------------- geany/settings.py geany/sitemaps.py geany/urls.py pastebin/highlight.py tox.ini
Modified: geany/settings.py 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -335,7 +335,7 @@ "honeypot", # for pastebin "mezzanine_pagedown", "mezzanine_sync_pages.apps.MezzanineSyncPagesAppConfig", - #"shortener", # disabled until it is fixed for Django 4.0 or we remove it completely + # "shortener", # disabled until it is fixed for Django 4.0 or we remove it completely PACKAGE_NAME_FILEBROWSER, PACKAGE_NAME_GRAPPELLI, )
Modified: geany/sitemaps.py 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -134,12 +134,12 @@ def get_dynamic_items(self): return []
# ---------------------------------------------------------------------- - def changefreq(self, obj): # pylint: disable=unused-argument + def changefreq(self, item): # pylint: disable=unused-argument return 'monthly'
# ---------------------------------------------------------------------- - def location(self, obj): # pylint: disable=unused-argument - return self._url_mapping[obj.name] + def location(self, item): + return self._url_mapping[item.name]
# ---------------------------------------------------------------------- def get_urls(self, page=1, site=None, protocol=None):
Modified: geany/urls.py 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -64,7 +64,7 @@ path('captcha/', include('captcha.urls')),
# URL Shortener - #path('s/', include('urlshortener.urls')), # disabled until it is fixed for Django 4.0 + # path('s/', include('urlshortener.urls')), # disabled until it is fixed for Django 4.0
# /news/ News path('news/', include('news.urls')),
Modified: pastebin/highlight.py 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -56,7 +56,7 @@ class NakedHtmlFormatter(HtmlFormatter): """Do not wrap the code in <div> or <code> tags (Pygments default)"""
# ---------------------------------------------------------------------- - def wrap(self, source, outfile): + def wrap(self, source): return self._wrap_code(source)
# ----------------------------------------------------------------------
Modified: tox.ini 18 lines changed, 8 insertions(+), 10 deletions(-) =================================================================== @@ -56,7 +56,7 @@ include_trailing_comma = true skip = local_settings.py,local_settings.docker.py
# the following sections are for pylint -[MASTER] +[pylint.main] ignore=.git ignore-patterns=local_settings.py,local_settings.docker.py persistent=no @@ -70,30 +70,28 @@ load-plugins= pylint.extensions.overlapping_exceptions, pylint.extensions.redefined_variable_type
-[MESSAGES CONTROL] +[pylint] disable= empty-docstring, logging-format-interpolation, missing-docstring, - no-else-return, - no-self-use + no-else-return
-[REPORTS] +[pylint.reports] output-format=parseable -files-output=no reports=no
-[FORMAT] +[pylint.format] max-line-length=100
-[VARIABLES] +[pylint.variables] dummy-variables-rgx=_|dummy
-[DESIGN] +[pylint.design] min-public-methods=0 max-attributes=10 max-args=7 max-parents=9
-[EXCEPTIONS] +[pylint.exceptions] overgeneral-exceptions=
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).