Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#477)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black: 23.12.1 →
24.3.0](psf/black@23.12.1...24.3.0)
- [github.com/asottile/pyupgrade: v3.15.0 →
v3.15.2](asottile/pyupgrade@v3.15.0...v3.15.2)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 →
v0.3.5](astral-sh/ruff-pre-commit@v0.1.9...v0.3.5)
- [github.com/pycqa/flake8: 6.1.0 →
7.0.0](PyCQA/flake8@6.1.0...7.0.0)
- [github.com/PyCQA/bandit: 1.7.6 →
1.7.8](PyCQA/bandit@1.7.6...1.7.8)
<!--pre-commit.ci end-->
  • Loading branch information
Guts authored Apr 1, 2024
2 parents 65efd4b + 45cc77b commit fb6e812
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- "--py310-plus"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9"
rev: "v0.3.5"
hooks:
- id: ruff
args: ["--fix-only"]
Expand All @@ -44,15 +44,15 @@ repos:
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
language: python
types: [python]
args: ["--config=setup.cfg", "--select=E9,F63,F7,F82"]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
rev: 1.7.8
hooks:
- id: bandit
args: ["--configfile", "bandit.yaml"]
Expand Down
6 changes: 3 additions & 3 deletions qgis_deployment_toolbelt/profiles/profiles_handler_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class RemoteProfilesHandlerBase:

SOURCE_REPOSITORY_ACTIVE_BRANCH: str | None = None
SOURCE_REPOSITORY_PATH_OR_URL: Path | str | None = None
SOURCE_REPOSITORY_TYPE: Literal[
"git_local", "git_remote", "http", "local", "remote"
] | None = None
SOURCE_REPOSITORY_TYPE: (
Literal["git_local", "git_remote", "http", "local", "remote"] | None
) = None

DESTINATION_PATH: Path | None = None
DESTINATION_BRANCH_TO_USE: str | None = None
Expand Down
6 changes: 3 additions & 3 deletions tests/test_cli_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def test_main_run(capsys, option):
) as tmpdirname:
# customize QDT working folder and profiles destination folder
tmp_dir = Path(tmpdirname).joinpath(f"scenario_{good_scenarios.index(option)}")
environ[
"QDT_LOCAL_WORK_DIR"
] = f"{Path(tmpdirname).joinpath('qdt_working_folder').resolve()}"
environ["QDT_LOCAL_WORK_DIR"] = (
f"{Path(tmpdirname).joinpath('qdt_working_folder').resolve()}"
)
environ["QGIS_CUSTOM_CONFIG_PATH"] = f"{tmp_dir.resolve()}"

assert getenv("QGIS_CUSTOM_CONFIG_PATH") is not None
Expand Down

0 comments on commit fb6e812

Please sign in to comment.