[geany/www.geany.org] 64faf9: Tell pylint our Django settings and add a dummy secret key setting

Enrico Tröger git-noreply at xxxxx
Sun Mar 21 14:03:36 UTC 2021


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 21 Mar 2021 14:03:36 UTC
Commit:      64faf9de93f4fabe90d88e96816ec7a3ec9199e7
             https://github.com/geany/www.geany.org/commit/64faf9de93f4fabe90d88e96816ec7a3ec9199e7

Log Message:
-----------
Tell pylint our Django settings and add a dummy secret key setting

This should fix recent CI failures.


Modified Paths:
--------------
    geany/settings.py
    static_docs/github_client.py
    tox.ini

Modified: geany/settings.py
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -140,6 +140,7 @@
                  'www.geany.org')
 INTERNAL_IPS = ("127.0.0.1", "10.0.44.3", "37.120.182.205", "2a03:4000:f:40f:99::205")
 
+SECRET_KEY = 'change-me'
 
 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name


Modified: static_docs/github_client.py
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -72,8 +72,8 @@ def _request(self, url, status_404_expected=False):
     # ----------------------------------------------------------------------
     def _factor_authorization_header(self):
         auth = '{}:x-oauth-basic'.format(self._auth_token)
-        auth = auth.encode('ascii')
-        basic_auth_value = 'Basic {}'.format(standard_b64encode(auth).decode())
+        auth_encoded = auth.encode('ascii')
+        basic_auth_value = 'Basic {}'.format(standard_b64encode(auth_encoded).decode())
         return {'Authorization': basic_auth_value}
 
     # ----------------------------------------------------------------------


Modified: tox.ini
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -29,7 +29,7 @@ deps =
 commands =
     {envbindir}/flake8 {[tox]geany_modules}
     {envbindir}/isort --check-only --diff {[tox]geany_modules}
-    {envbindir}/pylint --rcfile=tox.ini {[tox]geany_modules}
+    {envbindir}/pylint --rcfile=tox.ini --django-settings-module=geany.settings {[tox]geany_modules}
 
 [flake8]
 exclude = build,.git,docs,migrations,local_settings.py,local_settings.docker.py



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list