Skip to content

Commit 87cf9c1

Browse files
authored
ci: various configs (#129)
1 parent 52bf25a commit 87cf9c1

File tree

6 files changed

+34
-16
lines changed

6 files changed

+34
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ concurrency:
1919

2020
jobs:
2121
python:
22+
permissions:
23+
contents: read
2224
strategy:
2325
matrix:
2426
os: [ubuntu-latest, macos-latest, windows-latest]

.github/workflows/scans.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,7 @@ jobs:
5050
# More info at https://megalinter.io/latest/flavors/
5151
uses: oxsecurity/megalinter@ec124f7998718d79379a3c5b39f5359952baf21d # v8
5252
env:
53-
# All available variables are described in documentation
54-
# https://megalinter.io/latest/configuration/
55-
APPLY_FIXES: all
56-
DISABLE_LINTERS: JSON_JSONLINT,SPELL_CSPELL
57-
DISABLE_ERRORS_LINTERS: REPOSITORY_DEVSKIM,REPOSITORY_KICS
58-
FAIL_IF_UPDATED_SOURCES: true
59-
GITHUB_STATUS_REPORTER: true
6053
GITHUB_TOKEN: ${{ github.token }}
61-
PYTHON_DEFAULT_STYLE: ruff
62-
SARIF_REPORTER: true
63-
VALIDATE_ALL_CODEBASE: false
6454

6555
- if: ${{ success() || failure() }}
6656
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4

.mega-linter.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
APPLY_FIXES: all
2+
DISABLE_LINTERS:
3+
- JSON_JSONLINT
4+
- PYTHON_ISORT
5+
- PYTHON_PYLINT
6+
- PYTHON_PYRIGHT
7+
- SPELL_CSPELL
8+
DISABLE_ERRORS_LINTERS:
9+
- COPYPASTE_JSCPD
10+
- REPOSITORY_DEVSKIM
11+
- REPOSITORY_KICS
12+
FAIL_IF_UPDATED_SOURCES: true
13+
GITHUB_STATUS_REPORTER: true
14+
PYTHON_DEFAULT_STYLE: ruff
15+
SARIF_REPORTER: true
16+
VALIDATE_ALL_CODEBASE: false

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ repos:
6161
- id: detect-private-key
6262

6363
- repo: https://github.com/gitleaks/gitleaks
64-
rev: v8.23.3
64+
rev: v8.24.0
6565
hooks:
6666
- id: gitleaks
6767

@@ -81,7 +81,7 @@ repos:
8181
- id: markdownlint
8282

8383
- repo: https://github.com/astral-sh/ruff-pre-commit
84-
rev: v0.9.6
84+
rev: v0.9.7
8585
hooks:
8686
- id: ruff
8787
types_or: [python, pyi, jupyter]
@@ -95,7 +95,7 @@ repos:
9595
- id: taplo-format
9696

9797
- repo: https://github.com/astral-sh/uv-pre-commit
98-
rev: 0.6.1
98+
rev: 0.6.2
9999
hooks:
100100
- id: uv-lock
101101

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

renovate.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:best-practices", "group:allNonMajor"],
3+
"extends": [
4+
"config:best-practices",
5+
"security:openssf-scorecard",
6+
"group:allNonMajor",
7+
"group:allDigest",
8+
":automergeMinor",
9+
":automergeDigest"
10+
],
411
"packageRules": [
512
{
6-
"automerge": true,
7-
"matchUpdateTypes": ["minor", "patch", "pin", "digest"]
13+
"automerge": false,
14+
"groupName": "python",
15+
"matchPackageNames": ["python"],
16+
"matchUpdateTypes": ["minor"]
817
}
918
]
1019
}

0 commit comments

Comments
 (0)