Skip to content

Commit

Permalink
Merge pull request #52 from keitaroinc/fix-utf8
Browse files Browse the repository at this point in the history
put utf-8 encoding comment on top
  • Loading branch information
duskobogdanovski authored Apr 23, 2021
2 parents 5c65e57 + 5667025 commit 3abe6c0
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ckanext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,8 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8

# this is a namespace package
try:
import pkg_resources
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import logging
import string
import re
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit

Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/spconfig.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
from saml2.saml import NAME_FORMAT_URI

from ckan.common import config as ckan_config
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/tests/test_blueprint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import os
import pytest

Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/tests/test_blueprint_get_request.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import base64
from datetime import datetime
from jinja2 import Template
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import os
import pytest
from ckanext.saml2auth.views.saml2auth import saml2login
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import pytest

import ckan.authz as authz
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/tests/test_spconfig.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import pytest

from ckanext.saml2auth.spconfig import get_config
Expand Down
3 changes: 2 additions & 1 deletion ckanext/saml2auth/views/saml2auth.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# encoding: utf-8

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# encoding: utf-8
import logging
import copy

Expand Down
4 changes: 2 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,8 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# -*- coding: utf-8 -*-

pytest_plugins = [
u'ckan.tests.pytest_ckan.ckan_setup',
u'ckan.tests.pytest_ckan.fixtures',
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

"""
Copyright (c) 2020 Keitaro AB
Expand All @@ -15,7 +17,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

# -*- coding: utf-8 -*-
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
Expand Down

0 comments on commit 3abe6c0

Please sign in to comment.