Skip to content

Commit 9a4b7c6

Browse files
committed
add stuff
1 parent 7a0754d commit 9a4b7c6

7 files changed

Lines changed: 323 additions & 19 deletions

File tree

.gitallowed

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
id-token: write
2+
password: \${{secrets\.GITHUB_TOKEN}}
3+
token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
4+
github-token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"?
5+
token: ?"?\$\{\{\s*secrets\.DEPENDABOT_TOKEN\s*\}\}"?
6+
\.gitallowed

.github/dependabot.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,3 @@ updates:
3838
versioning-strategy: increase
3939
cooldown:
4040
default-days: 7
41-
###################################
42-
# NPM workspace ##################
43-
###################################
44-
- package-ecosystem: "npm"
45-
directory: "/"
46-
schedule:
47-
interval: "weekly"
48-
day: "friday"
49-
time: "22:00" # UTC
50-
open-pull-requests-limit: 20
51-
versioning-strategy: increase
52-
commit-message:
53-
prefix: "Upgrade: [dependabot] - "
54-
registries:
55-
- npm-github
56-
cooldown:
57-
default-days: 7

.pre-commit-config.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-merge-conflict
6+
name: Check for merge conflict strings
7+
8+
- id: end-of-file-fixer
9+
name: Fix missing newline at the end of files
10+
11+
- id: check-shebang-scripts-are-executable
12+
name: Check shell scripts are executable
13+
files: \.(sh)$
14+
15+
- id: check-yaml
16+
name: Check pipelines configuration
17+
files: ^(.github)
18+
19+
- repo: https://github.com/pycqa/flake8
20+
rev: "7ef0350a439c93166bc8ba89fcc3de6a9a664e6c"
21+
hooks:
22+
- id: flake8
23+
24+
- repo: local
25+
hooks:
26+
- id: zizmor-action
27+
name: Check action.yml
28+
entry: zizmor
29+
args: ["action.yml"]
30+
language: system
31+
files: action.yml
32+
pass_filenames: false
33+
34+
- id: lint-githubactions
35+
name: Lint github actions
36+
entry: make
37+
args: ["actionlint"]
38+
language: system
39+
files: ^.github
40+
types_or: [yaml]
41+
pass_filenames: false
42+
43+
- id: lint-githubaction-scripts
44+
name: Lint github action scripts
45+
entry: make
46+
args: ["shellcheck"]
47+
language: system
48+
files: ^.github/scripts
49+
types_or: [sh, shell]
50+
pass_filenames: false
51+
52+
- repo: local
53+
hooks:
54+
- id: git-secrets
55+
name: Git Secrets
56+
description: git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories.
57+
entry: bash
58+
args:
59+
- -c
60+
- "git-secrets --pre_commit_hook"
61+
language: system
62+
63+
fail_fast: true
64+
default_stages: [pre-commit]

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
.PHONY: install install-node compile lint test
2-
install:
3-
echo "Nothing to install"
2+
install: install-node install-python install-hooks
43
install-node:
54
echo "Nothing to install"
5+
install-python:
6+
poetry install
7+
install-hooks: install-python
8+
poetry run pre-commit install --install-hooks --overwrite
69
compile:
710
echo "Nothing to compile"
811
lint:

poetry.lock

Lines changed: 221 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

poetry.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[virtualenvs]
2+
in-project = true
3+
prefer-active-python = true

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
[project]
3+
python = "^3.14"
4+
name = "eps-update-devcontainer"
5+
6+
[tool.poetry]
7+
name = "eps-update-devcontainer"
8+
version = "0.0.1-alpha"
9+
description = "EPS update devcontainer"
10+
license = "MIT"
11+
authors = [
12+
"EPS"
13+
]
14+
readme = "README.md"
15+
repository = "https://github.com/NHSDigital/eps-update-devcontainer"
16+
package-mode = false
17+
18+
[tool.poetry.dependencies]
19+
python = "^3.14"
20+
21+
[tool.poetry.scripts]
22+
23+
[tool.poetry.group.dev.dependencies]
24+
pre-commit = "^4.5.1"

0 commit comments

Comments
 (0)