Skip to content

Commit d1688d5

Browse files
committed
Initial commit
0 parents  commit d1688d5

7 files changed

+785
-0
lines changed

.aicoe-ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
check: []

.pre-commit-config.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
repos:
3+
- repo: git://github.com/Lucas-C/pre-commit-hooks
4+
rev: v1.1.9
5+
hooks:
6+
- id: remove-tabs
7+
8+
- repo: git://github.com/pre-commit/pre-commit-hooks
9+
rev: v3.3.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: check-merge-conflict
13+
- id: end-of-file-fixer
14+
- id: check-added-large-files
15+
- id: check-case-conflict
16+
- id: check-json
17+
- id: check-symlinks
18+
- id: detect-private-key
19+
20+
- repo: https://github.com/adrienverge/yamllint.git
21+
rev: v1.25.0
22+
hooks:
23+
- id: yamllint
24+
files: \.(yaml|yml)$
25+
types: [file, yaml]
26+
entry: yamllint --strict -c yamllint-config.yaml

.prow.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
presubmits:
2+
- name: pre-commit
3+
decorate: true
4+
skip_report: false
5+
always_run: true
6+
context: aicoe-ci/prow/pre-commit
7+
spec:
8+
containers:
9+
- image: quay.io/thoth-station/thoth-precommit-py38:v0.12.5
10+
command:
11+
- "pre-commit"
12+
- "run"
13+
- "--all-files"
14+
resources:
15+
requests:
16+
memory: "500Mi"
17+
cpu: "300m"
18+
limits:
19+
memory: "1Gi"
20+
cpu: "300m"

LICENSE

+674
Large diffs are not rendered by default.

OWNERS

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See the OWNERS docs at https://go.k8s.io/owners
2+
3+
approvers:
4+
- durandom
5+
- tumido
6+
- HumairAK
7+
8+
reviewers:
9+
- hemajv
10+
- durandom
11+
- oindrillac
12+
- tumido
13+
- HumairAK
14+
- 4n4nd
15+
- harshad16
16+
- hemajv
17+
- goern
18+
- HumairAK
19+
- tumido
20+
- larsks
21+
- quaid

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Operate First template for repositories
2+
3+
Derive new repositories from this template
4+
5+
List of featurese:
6+
7+
## License
8+
9+
This template ensures new repos are created compliant with [ADR 0001](https://www.operate-first.cloud/blueprints/blueprint/docs/adr/0001-use-gpl3-as-license.md) and use GNU GPL v3 license.
10+
11+
## AI-CoE CI Github application
12+
13+
AI-CoE CI provides easy and quick integration for build pipelines and checks for pull requests.
14+
15+
An empty [`.aicoe-ci.yaml`](.aicoe-ci.yaml) is created here, disabling all checks via this CI provider by default. Documentation can be found [here](https://github.com/AICoE/aicoe-ci/).
16+
17+
## Prow CI
18+
19+
Prow is a CI provider developed for Kubernetes needs. Provides chat-ops management of pull requests, issues and declarative management for labels, branches and many more.
20+
21+
We host our own deployment of Prow in Operate First available at [https://prow.operate-first.cloud/](https://prow.operate-first.cloud/).
22+
23+
Supported commands are listed [here](https://prow.operate-first.cloud/command-help). We have also enabled Prow to consume on-repository configuration files. You can specify your config in [`.prow.yaml`](.prow.yaml). Additional centralized configuration can be found in the [thoth-application repository](https://github.com/thoth-station/thoth-application/tree/master/prow/overlays/cnv-prod).
24+
25+
## Pre-commit
26+
27+
By extension to Prow, we define a default pre-commit config for new repositories. Default hook configuration can be found in [`.pre-commit-config.yaml`](.pre-commit-config.yaml). Pre-commit is executed via Prow, see [`.prow.yaml`](.prow.yaml) for details.
28+
29+
We enable yamllint hook by default, since most of our repositories use yaml files extensively. Default configuration for this hook is located at [`yamllint-config.yaml`](yamllint-config.yaml).
30+
31+
To install and enable pre-commit locally please follow the instructions [here](https://pre-commit.com/#quick-start).
32+
33+
It is advised for all contributors to enable pre-commit git hook via `pre-commit install` after cloning any repo within Operate First.

yamllint-config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
rules:
4+
line-length: disable
5+
document-start: disable
6+
indentation:
7+
indent-sequences: whatever
8+
hyphens:
9+
max-spaces-after: 4

0 commit comments

Comments
 (0)