Skip to content

Commit

Permalink
dropped python 3.9 support pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydaniels-nl committed Dec 5, 2024
1 parent 597006a commit 071fbe5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: '3.10'
- uses: pre-commit/[email protected]
3 changes: 0 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
fail-fast: false
matrix:
include:
# Django 3.2
- django: "3.2"
python: "3.9"
# Django 4.2
- django: "4.2"
python: "3.10"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Supported hooks: https://pre-commit.com/hooks.html
# Running "make format" fixes most issues for you
default_language_version:
python: python3.9
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand Down
2 changes: 1 addition & 1 deletion gisserver/output/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def get_properties(
feature_type: FeatureType,
xsd_type: XsdComplexType,
instance: models.Model,
property_name: list[str] | None = None,
property_name: list[str] | None = None, # noqa: UP007
) -> dict:
"""Collect the data for the 'properties' field.
Expand Down
2 changes: 1 addition & 1 deletion gisserver/queries/adhoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AdhocQuery(QueryExpression):
# aliases: Optional[List[str]] = None
handle: str = "" # only for XML POST requests

property_name: list[str] | None = (None,) # noqa: UP007
property_name: list[str] | None = None

# Selection clause:
# - for XML POST this is encoded in a <fes:Query>
Expand Down

0 comments on commit 071fbe5

Please sign in to comment.