Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #267

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading