Skip to content

Commit

Permalink
Merge pull request #260 from BRGM/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
Guts authored Apr 4, 2023
2 parents 607accd + f47fc8f commit c765f4d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: "node_modules|migrations|.venv|tests/dev/|tests/fixtures/|presentations
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
Expand All @@ -18,18 +18,18 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/psf/black
rev: 22.8.0
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
language: python
Expand Down
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 c765f4d

Please sign in to comment.