Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2023
1 parent affa5f7 commit f47fc8f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

# -- Options for Sphinx API doc ----------------------------------------------


# run api doc
def run_apidoc(_):
from sphinx.ext.apidoc import main
Expand Down
1 change: 0 additions & 1 deletion gml_application_schema_toolbox/core/load_gml_as_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ def _create_layer(self, geom_type: str, srid, attributes, title, tag):
def _add_properties_to_layer(
self, layer, xml_uri, is_remote, attributes, geom_mapping
):

tag = layer.customProperty("tag")
fn = "{}_{}.gpkg".format(self.output_local_file, tag)
qgs_layer = QgsVectorLayer("{}|layername=meta".format(fn), "meta", "ogr")
Expand Down
2 changes: 1 addition & 1 deletion gml_application_schema_toolbox/gui/database_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def get_foreign_keys(self) -> List[str]:
results = conn.executeSql(sql)
except QgsProviderConnectionException as err:
self.log(message=err, log_level=2, push=True)
for (layer_name, field_name, child_layer, child_pkid) in results:
for layer_name, field_name, child_layer, child_pkid in results:
foreign_keys.append(
ForeignKey(
table=layer_name,
Expand Down
1 change: 0 additions & 1 deletion gml_application_schema_toolbox/gui/import_gmlas_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def on_loadLayersButton_clicked(self):
self.unsetCursor()

def validate(self):

data_source = self.gmlas_datasource()

if data_source is None:
Expand Down
3 changes: 0 additions & 3 deletions gml_application_schema_toolbox/model_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@


class ModelDialog(QGraphicsView):

tableSelected = pyqtSignal(str)

def __init__(self, model, parent=None):
Expand Down Expand Up @@ -97,7 +96,6 @@ def spiral_iterator():


class TableWidget(QWidget):

linkActivated = pyqtSignal(str)

def __init__(self, table):
Expand Down Expand Up @@ -202,7 +200,6 @@ def enable_link_item(item):


class ModelDialogScene(QGraphicsScene):

tableSelected = pyqtSignal(str)

def __init__(self, model, parent):
Expand Down

0 comments on commit f47fc8f

Please sign in to comment.