Skip to content

Commit db6dea8

Browse files
authored
Merge pull request #3660 from mapfish/ci-upgrade
CI updates
2 parents aee5d5e + b44df2a commit db6dea8

File tree

7 files changed

+31
-6
lines changed

7 files changed

+31
-6
lines changed

.github/monthly-release

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ import sys
88

99
_TAG_RE = re.compile(r"^(\d+)\.(\d+)\.(\d+)$")
1010

11+
1112
def _main():
1213
parser = argparse.ArgumentParser("Create new tags on every stabilisation branches")
1314
parser.add_argument("--dry-run", action="store_true", help="Do not create tags")
1415
args = parser.parse_args()
1516

16-
with open("SECURITY.md", encoding='utf-8') as security_file:
17+
with open("SECURITY.md", encoding="utf-8") as security_file:
1718
security = security_md.Security(security_file.read())
1819

1920
for branch in security.branches():
2021
subprocess.run(["git", "checkout", branch], check=True)
2122

22-
last_tag = subprocess.run(['git', 'describe', '--tags', '--abbrev=0'], stdout=subprocess.PIPE, encoding='utf-8').stdout.strip()
23+
last_tag = subprocess.run(
24+
["git", "describe", "--tags", "--abbrev=0"], stdout=subprocess.PIPE, encoding="utf-8"
25+
).stdout.strip()
2326
last_tag_match = _TAG_RE.match(last_tag)
2427
if last_tag_match is None:
2528
print(f"Cannot parse tag {last_tag}")

.github/renovate.json5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
'github>camptocamp/gs-renovate-config-preset:own.json5#1.1.2',
1111
'github>camptocamp/gs-renovate-config-preset:json-schema.json5#1.1.2',
1212
'github>camptocamp/gs-renovate-config-preset:shellcheck.json5#1.1.2',
13+
'github>camptocamp/gs-renovate-config-preset:python.json5#1.0.1',
14+
'github>camptocamp/gs-renovate-config-preset:security.json5#1.0.1',
1315
],
1416
baseBranches: ['3.28', '3.29', '3.30', '3.31', 'master'],
1517
customManagers: [
1618
{
17-
fileMatch: ['^build.gradle$', '.*/build.gradle$'],
1819
matchStrings: ['toolVersion = "(?<currentValue>.*)" // (?<depName>.*)'],
1920
datasourceTemplate: 'maven',
2021
customType: 'regex',
22+
managerFilePatterns: ['/^build.gradle$/', '/.*/build.gradle$/'],
2123
},
2224
],
2325
packageRules: [

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
actions: write
1515
contents: write
1616

17+
id-token: write
1718
env:
1819
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}
1920

.github/workflows/pull-request-automation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ jobs:
4848
})
4949
if: |-
5050
github.event.pull_request.user.login == 'renovate[bot]'
51+
permissions:
52+
pull-requests: write

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,11 @@ repos:
2828
rev: 1.4.1
2929
hooks:
3030
- id: canonicalize
31+
- repo: https://github.com/astral-sh/ruff-pre-commit
32+
rev: v0.11.8
33+
hooks:
34+
- id: ruff-format
35+
- repo: https://github.com/sbrunner/python-versions-hook
36+
rev: 1.0.0
37+
hooks:
38+
- id: python-versions

core/docker/usr/local/tomcat/bin/docker-start-watch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def start():
2828

2929

3030
def main():
31-
parser = argparse.ArgumentParser("This script is used in debug mode to restart the print after a compilation")
31+
parser = argparse.ArgumentParser(
32+
"This script is used in debug mode to restart the print after a compilation"
33+
)
3234
parser.parse_args()
3335

3436
global timer, process

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
[tool.black]
1+
[tool.ruff]
2+
target-version = "py310"
23
line-length = 110
3-
target-version = ["py39"]
4+
5+
[tool.ruff.lint.pydocstyle]
6+
convention = "numpy"
7+
8+
[project]
9+
classifiers = []
10+
dynamic = ["dependencies", "version"]

0 commit comments

Comments
 (0)