Skip to content

Commit

Permalink
Merge pull request #267 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 Oct 29, 2024
2 parents 023be9c + af25f6a commit fdf214a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 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.4.0
rev: v5.0.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: 23.9.1
rev: 24.10.0
hooks:
- id: black

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

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
language: python
Expand Down
8 changes: 5 additions & 3 deletions gml_application_schema_toolbox/core/gmlas_xpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ def resolve_xpath(self, ogr_layer_name, ogr_layer_pkid_name, pkid_value, xpath):

where = " and ".join(
[
"{}.{} = {}.{}".format(lyr[0], lyr[1], rec[0], rec[1])
if isinstance(rec, tuple)
else "{}.{} = {}".format(lyr[0], lyr[1], rec)
(
"{}.{} = {}.{}".format(lyr[0], lyr[1], rec[0], rec[1])
if isinstance(rec, tuple)
else "{}.{} = {}".format(lyr[0], lyr[1], rec)
)
for lyr, rec in sql_wheres
]
)
Expand Down
1 change: 0 additions & 1 deletion gml_application_schema_toolbox/creation_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
"""


import os
from builtins import range, str

Expand Down
8 changes: 5 additions & 3 deletions gml_application_schema_toolbox/toolbelt/network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,11 @@ def replyFinished(self):
% (
self.http_call_result.status_code,
self.http_call_result.status_message,
self.reply.url().toString()
if self.reply
else "reply has been deleted",
(
self.reply.url().toString()
if self.reply
else "reply has been deleted"
),
)
)
for k, v in list(self.http_call_result.headers.items()):
Expand Down
1 change: 1 addition & 0 deletions gml_application_schema_toolbox/viewers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
"""

from gml_application_schema_toolbox.viewers.geology_logs import ( # noqa: F401
GeologyLogViewer,
)
Expand Down

0 comments on commit fdf214a

Please sign in to comment.