Skip to content

Commit 0aa52ae

Browse files
authored
Merge pull request #11 from github-community-projects/add-missing-workflows
Add missing workflow files from OSPO actions
2 parents 8642cdf + 3df4fab commit 0aa52ae

24 files changed

Lines changed: 373 additions & 80 deletions

.github/dependabot.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,48 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: "pip"
4-
directory: "/"
4+
- package-ecosystem: "pip" # See documentation for possible values
5+
directory: "/" # Location of package manifests
56
schedule:
67
interval: "weekly"
7-
- package-ecosystem: "docker"
8+
cooldown:
9+
default-days: 7
10+
commit-message:
11+
prefix: "chore(deps)"
12+
labels: ["python", "dependencies"]
13+
groups:
14+
dependencies:
15+
applies-to: version-updates
16+
update-types:
17+
- "minor"
18+
- "patch"
19+
- package-ecosystem: "github-actions"
820
directory: "/"
921
schedule:
1022
interval: "weekly"
11-
- package-ecosystem: "github-actions"
12-
directory: ".github/workflows"
23+
cooldown:
24+
default-days: 7
25+
commit-message:
26+
prefix: "chore(deps)"
27+
labels: ["github_actions", "dependencies"]
28+
groups:
29+
dependencies:
30+
applies-to: version-updates
31+
update-types:
32+
- "minor"
33+
- "patch"
34+
- package-ecosystem: "docker"
35+
directory: "/"
1336
schedule:
1437
interval: "weekly"
38+
cooldown:
39+
default-days: 7
40+
commit-message:
41+
prefix: "chore(deps)"
42+
labels: ["docker", "dependencies"]
43+
groups:
44+
dependencies:
45+
applies-to: version-updates
46+
update-types:
47+
- "minor"
48+
- "patch"

.github/linters/.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = *.py
3+
ignore-words-list = astroid

.github/linters/.flake8

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
max-line-length = 150
32
exclude = venv,.venv,.git,__pycache__
4-
extend-ignore = C901
3+
extend-ignore = C901, E203
4+
max-line-length = 150
55
statistics = True

.github/linters/.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[isort]
1+
[settings]
22
profile = black

.github/linters/.jscpd.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"threshold": 25,
3+
"ignore": ["test*", "**/.venv/**"],
4+
"absolute": true
5+
}

.github/linters/.markdown-lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Linter rules doc
2+
3+
## line length
4+
5+
MD013: false
6+
7+
## single h1
8+
9+
MD025: false
10+
11+
## duplicate headers
12+
13+
MD024: false

.github/linters/.python-lint

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ fail-under=10
4848
# Files or directories to be skipped. They should be base names, not paths.
4949
ignore=CVS,
5050
.git,
51-
__pycache__,
52-
venv,
53-
.venv,
51+
__pycache__,
52+
venv,
53+
.venv,
5454

5555
# Add files or directories matching the regular expressions patterns to the
5656
# ignore-list. The regex matches against paths and can be in Posix or Windows
@@ -103,6 +103,10 @@ recursive=no
103103
# source root.
104104
source-roots=
105105

106+
# When enabled, pylint would attempt to guess common misconfiguration and emit
107+
# user-friendly hints instead of false-positive error messages.
108+
suggestion-mode=yes
109+
106110
# Allow loading of arbitrary C extensions. Extensions are imported into the
107111
# active Python interpreter and may run arbitrary code.
108112
unsafe-load-any-extension=no

.github/linters/.textlintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"filters": {
3+
"comments": true
4+
},
5+
"rules": {
6+
"terminology": {
7+
"severity": "warning"
8+
}
9+
}
10+
}

.github/linters/trivy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
scan:
2+
skip-dirs:
3+
- .mypy_cache

.github/linters/zizmor.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
dangerous-triggers: # to allow pull_request_target for auto-labelling fork pull requests
3+
ignore:
4+
- auto-labeler.yml
5+
- pr-title.yml
6+
- release.yml

0 commit comments

Comments
 (0)