-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #568 from sbrunner/ci-upgrade
CI updates
- Loading branch information
Showing
21 changed files
with
245 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/tag-publish/0.13.0/tag_publish/schema.json | ||
|
||
pypi: | ||
packages: | ||
- {} | ||
dispatch: | ||
- {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,34 @@ | ||
{ | ||
extends: ['config:base'], | ||
timezone: 'Europe/Zurich', | ||
schedule: 'after 5pm on the first day of the month', | ||
labels: ['dependencies'], | ||
separateMajorMinor: true, | ||
separateMinorPatch: true, | ||
prHourlyLimit: 0, | ||
prConcurrentLimit: 0, | ||
lockFileMaintenance: { | ||
enabled: true, | ||
automerge: true, | ||
schedule: 'after 5pm on the first day of the month', | ||
}, | ||
'pre-commit': { enabled: true }, | ||
extends: [ | ||
'config:base', | ||
'github>camptocamp/gs-renovate-config-preset:base.json5#0.3.3', | ||
'github>camptocamp/gs-renovate-config-preset:ci.json5#0.3.3', | ||
'github>camptocamp/gs-renovate-config-preset:pre-commit.json5#0.3.3', | ||
'github>camptocamp/gs-renovate-config-preset:python.json5#0.3.3', | ||
'github>camptocamp/gs-renovate-config-preset:json-schema.json5#0.3.3', | ||
'github>camptocamp/gs-renovate-config-preset:shellcheck.json5#0.3.3', | ||
], | ||
osvVulnerabilityAlerts: true, | ||
vulnerabilityAlerts: { | ||
schedule: ['at any time'], | ||
automerge: true, | ||
}, | ||
regexManagers: [ | ||
/** Do updates on pre-commit additional dependencies */ | ||
{ | ||
fileMatch: ['^\\.pre\\-commit\\-config\\.yaml$'], | ||
matchStrings: [" +- '?(?<depName>[^' @=]+)(@|==)(?<currentValue>[^' @=]+)'? # (?<datasource>.+)"], | ||
}, | ||
customManagers: [ | ||
/** Do update on the schema present in the ci/config.yaml */ | ||
{ | ||
fileMatch: ['^ci/config\\.yaml$'], | ||
matchStrings: [ | ||
'.*https://raw\\.githubusercontent\\.com/(?<depName>[^\\s]+)/(?<currentValue>[0-9\\.]+)/.*', | ||
], | ||
datasourceTemplate: 'github-tags', | ||
}, | ||
/** Python version in actions/setup-python action */ | ||
{ | ||
fileMatch: ['^\\.github/workflows/.*\\.yaml$'], | ||
matchStrings: [' python-version: [\'"](?<currentValue>[0-9\\.]+)[\'"]'], | ||
datasourceTemplate: 'python-version', | ||
depNameTemplate: 'python', | ||
customType: 'regex', | ||
}, | ||
], | ||
packageRules: [ | ||
/** Auto merge the dev dependency update */ | ||
{ | ||
matchDepTypes: ['devDependencies'], | ||
automerge: true, | ||
}, | ||
/** Group and auto merge the patch updates */ | ||
{ | ||
matchUpdateTypes: ['patch'], | ||
groupName: 'all patch versions', | ||
automerge: true, | ||
}, | ||
/** Group and auto merge the minor updates */ | ||
{ | ||
matchUpdateTypes: ['minor'], | ||
groupName: 'all minor versions', | ||
automerge: true, | ||
}, | ||
/** Group Poetry packages */ | ||
{ | ||
matchPackagePrefixes: ['poetry-'], | ||
groupName: 'Poetry', | ||
automerge: true, | ||
matchDepNames: ['poetry', 'pip'], | ||
}, | ||
/** Separate pull request for scikit-image */ | ||
{ | ||
groupName: 'scikit-image', | ||
matchDepNames: ['scikit-image'], | ||
}, | ||
/** Support the 4 parts of shellcheck-py version with a v prefix */ | ||
{ | ||
versioning: 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)$', | ||
matchDepNames: ['shellcheck-py/shellcheck-py'], | ||
}, | ||
/** Group and auto merge the CI dependencies */ | ||
{ | ||
matchFileNames: ['.github/**', '.pre-commit-config.yaml', 'ci/**'], | ||
groupName: 'CI dependencies', | ||
automerge: true, | ||
}, | ||
/** Ungroup Python dependencies */ | ||
{ | ||
matchDepNames: ['python'], | ||
groupName: 'Python', | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,14 @@ | ||
inherits: | ||
- utils:base | ||
- utils:no-design-checks | ||
- utils:fix | ||
- utils:unsafe | ||
- duplicated | ||
strictness: veryhigh | ||
max-line-length: 110 | ||
doc-warnings: true | ||
|
||
pylint: | ||
disable: | ||
- too-many-arguments | ||
- too-many-statements | ||
|
||
pycodestyle: | ||
disable: | ||
- E501 # line too long | ||
- E722 # do not use bare 'except' | ||
|
||
pydocstyle: | ||
disable: | ||
- D102 # Missing docstring in public method | ||
- D104 # Missing docstring in public package | ||
- D212 # Multi-line docstring summary should start at the first line | ||
- D202 # No blank lines allowed after function docstring | ||
|
||
bandit: | ||
run: true | ||
|
||
mypy: | ||
run: true | ||
|
||
pyroma: | ||
run: true | ||
options: | ||
python-version: '3.10' | ||
|
||
mccabe: | ||
run: false | ||
ruff: | ||
options: | ||
target-version: py310 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.