Skip to content

Commit

Permalink
Update of the code style libraries (#1842)
Browse files Browse the repository at this point in the history
* Update of the code style libraries
* Adapt code to new coding style requirement
  • Loading branch information
jwkaltz authored Oct 18, 2023
1 parent bcf3855 commit 86c166e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flake8==6.0.0
pyflakes==3.0.1
pycodestyle==2.10.0
flake8==6.1.0
pyflakes==3.1.0
pycodestyle==2.11.1
Sphinx==7.1.2
sphinx_rtd_theme==1.3.0
psycopg2==2.9.9
Expand Down
4 changes: 2 additions & 2 deletions pyramid_oereb/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,8 +1577,8 @@ def _get_object_path(current_path, current_object, path, default, required):

current_path.append(k)

if type(current_object[k]) != dict:
raise ConfigurationError('The configuration {} is not an object.'.format(
if not isinstance(current_object[k], dict):
raise ConfigurationError('The configuration {} is not a dictionary.'.format(
'.'.join(current_path)))

return Config._get_object_path(current_path, current_object[k], path[1:], default, required)
Expand Down
2 changes: 1 addition & 1 deletion tests/contrib.data_sources.standard/test_init.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from sqlalchemy.orm import declarative_base
from sqlalchemy import String, DateTime, Column
from pyramid_oereb.contrib.data_sources.standard import create_schema_sql, tables, create_tables_sql,\
from pyramid_oereb.contrib.data_sources.standard import create_schema_sql, tables, create_tables_sql, \
create_sql


Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_hook_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pyramid_oereb.core.records.view_service import LegendEntryRecord
from pyramid_oereb.core.records.real_estate import RealEstateRecord
from pyramid_oereb.core.hook_methods import compare, get_symbol, get_symbol_ref, \
get_logo_ref, get_qr_code_ref, get_surveying_data_update_date,\
get_logo_ref, get_qr_code_ref, get_surveying_data_update_date, \
plr_sort_within_themes
from pyramid_oereb.contrib.data_sources.standard.sources.plr import StandardThemeConfigParser
import pyramid_oereb.contrib.data_sources.standard.hook_methods
Expand Down

0 comments on commit 86c166e

Please sign in to comment.