Skip to content

Commit 484b162

Browse files
committed
chore: add missing tooling (gitattributes, editorconfig, CI)
Refs hyperpolymath/standards#102
1 parent 8458271 commit 484b162

3 files changed

Lines changed: 160 additions & 0 deletions

File tree

.editorconfig

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 2
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.adoc]
18+
trim_trailing_whitespace = false
19+
20+
[*.rs]
21+
indent_size = 4
22+
23+
[*.zig]
24+
indent_size = 4
25+
26+
[*.ada]
27+
indent_size = 3
28+
29+
[*.adb]
30+
indent_size = 3
31+
32+
[*.ads]
33+
indent_size = 3
34+
35+
[*.ex]
36+
indent_size = 2
37+
38+
[*.exs]
39+
indent_size = 2
40+
41+
[*.hs]
42+
indent_size = 2
43+
44+
[*.res]
45+
indent_size = 2
46+
47+
[*.resi]
48+
indent_size = 2
49+
50+
[*.ncl]
51+
indent_size = 2
52+
53+
[*.scm]
54+
indent_size = 2
55+
56+
[*.nix]
57+
indent_size = 2
58+
59+
[Justfile]
60+
indent_style = space
61+
indent_size = 4
62+
63+
[justfile]
64+
indent_style = space
65+
indent_size = 4
66+
67+
[Makefile]
68+
indent_style = tab

.gitattributes

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# RSR-compliant .gitattributes
3+
4+
* text=auto eol=lf
5+
6+
# Source
7+
*.rs text eol=lf diff=rust
8+
*.ex text eol=lf diff=elixir
9+
*.exs text eol=lf diff=elixir
10+
*.jl text eol=lf
11+
*.res text eol=lf
12+
*.resi text eol=lf
13+
*.ada text eol=lf diff=ada
14+
*.adb text eol=lf diff=ada
15+
*.ads text eol=lf diff=ada
16+
*.hs text eol=lf
17+
*.chpl text eol=lf
18+
*.scm text eol=lf
19+
*.a2ml text eol=lf linguist-language=TOML
20+
*.ncl text eol=lf
21+
*.nix text eol=lf
22+
*.zig text eol=lf
23+
24+
# Docs
25+
*.md text eol=lf diff=markdown
26+
*.adoc text eol=lf
27+
*.txt text eol=lf
28+
29+
# Data
30+
*.json text eol=lf
31+
*.yaml text eol=lf
32+
*.yml text eol=lf
33+
*.toml text eol=lf
34+
35+
# Config
36+
.gitignore text eol=lf
37+
.gitattributes text eol=lf
38+
.editorconfig text eol=lf
39+
.tool-versions text eol=lf
40+
justfile text eol=lf
41+
Makefile text eol=lf
42+
Containerfile text eol=lf
43+
44+
# Scripts
45+
*.sh text eol=lf
46+
47+
# Binary
48+
*.png binary
49+
*.jpg binary
50+
*.gif binary
51+
*.pdf binary
52+
*.woff2 binary
53+
*.zip binary
54+
*.gz binary
55+
56+
# Lock files
57+
Cargo.lock text eol=lf -diff
58+
flake.lock text eol=lf -diff

.github/workflows/governance.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# governance.yml — single wrapper calling the shared estate governance bundle
3+
# in hyperpolymath/standards instead of carrying per-repo copies.
4+
#
5+
# Replaces the per-repo governance scaffolding removed in the same commit:
6+
# quality.yml, guix-nix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
7+
# security-policy.yml, rsr-antipattern.yml, wellknown-enforcement.yml,
8+
# workflow-linter.yml
9+
#
10+
# Load-bearing build/security workflows stay standalone in the repo
11+
# (rust-ci, codeql, dependabot, release, scan/mirror/pages plumbing).
12+
13+
name: Governance
14+
15+
on:
16+
push:
17+
branches: [main, master]
18+
pull_request:
19+
workflow_dispatch:
20+
21+
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
22+
# updates do not pile up queued runs against the shared account-wide
23+
# Actions concurrency pool. Applied only to read-only check workflows
24+
# (no publish/mutation), so cancelling a superseded run is always safe.
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
29+
permissions:
30+
contents: read
31+
32+
jobs:
33+
governance:
34+
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@main

0 commit comments

Comments
 (0)