Skip to content

Commit c7f2cac

Browse files
committed
initial public release v3.0.0
0 parents  commit c7f2cac

13 files changed

Lines changed: 1303 additions & 0 deletions

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.pre-commit-config.path
2+
.venv/
3+
.vscode/
4+
5+
# beads-rust tracker storage
6+
.beads/
7+
8+
# Ralph TUI (not part of this repo)
9+
.ralph-tui/
10+
ralph-tui.md
11+
Makefile
12+
scripts/beads_bootstrap.sh
13+
scripts/install_br.sh

.pre-commit-config-py38.yaml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# The generic Techmo's pre-commit hooks configuration — Python 3.8 variant.
2+
#
3+
# Used automatically by install.sh when the runtime Python is 3.8.
4+
# Differences from .pre-commit-config.yaml:
5+
# - mirrors-mypy pinned to v1.14.0 (last release supporting Python 3.8;
6+
# mypy 1.15.0 raised Requires-Python to >=3.9)
7+
# - ruff gets --target-version py38 so UP rules don't suggest py39+ syntax
8+
#
9+
# See https://pre-commit.com for more information.
10+
# See https://pre-commit.com/hooks.html for more hooks.
11+
12+
fail_fast: false
13+
repos:
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v5.0.0
16+
hooks:
17+
- id: check-added-large-files
18+
- id: check-case-conflict
19+
- id: check-executables-have-shebangs
20+
- id: check-illegal-windows-names
21+
- id: check-json
22+
- id: check-merge-conflict
23+
- id: check-shebang-scripts-are-executable
24+
- id: check-symlinks
25+
- id: check-toml
26+
- id: check-yaml
27+
- id: debug-statements
28+
- id: detect-private-key
29+
- id: end-of-file-fixer
30+
exclude: \.patch$
31+
- id: fix-byte-order-marker
32+
- id: mixed-line-ending
33+
- id: no-commit-to-branch
34+
args: [--branch, master]
35+
- id: requirements-txt-fixer
36+
- id: trailing-whitespace
37+
exclude: \.patch$
38+
args:
39+
- --markdown-linebreak-ext=md
40+
41+
- repo: https://github.com/astral-sh/ruff-pre-commit
42+
rev: v0.15.1
43+
hooks:
44+
- id: ruff-check
45+
args: [--fix, --select, "E,W,F,I,S,UP,B", --extend-ignore, "S101,S603,S607", --line-length, "160", --target-version, "py38"]
46+
- id: ruff-format
47+
args: [--line-length, "160", --target-version, "py38"]
48+
49+
- repo: https://github.com/gitleaks/gitleaks
50+
rev: v8.30.0
51+
hooks:
52+
- id: gitleaks
53+
54+
- repo: https://github.com/codespell-project/codespell
55+
rev: v2.4.1
56+
hooks:
57+
- id: codespell
58+
59+
- repo: https://github.com/pre-commit/mirrors-mypy
60+
rev: v1.14.0
61+
hooks:
62+
- id: mypy
63+
args:
64+
[
65+
--strict,
66+
--ignore-missing-imports,
67+
--check-untyped-defs,
68+
--show-error-codes,
69+
]
70+
71+
- repo: https://github.com/pocc/pre-commit-hooks
72+
rev: v1.3.5
73+
hooks:
74+
- id: clang-format
75+
additional_dependencies: [clang-format]
76+
args:
77+
- --style=file
78+
- --fallback-style=none
79+
- id: cppcheck
80+
additional_dependencies: [cppcheck]
81+
args:
82+
- --std=c++17
83+
- --language=c++
84+
- --enable=all
85+
- --error-exitcode=1
86+
- --inline-suppr
87+
- --suppress=missingInclude
88+
- --suppress=missingIncludeSystem
89+
- --suppress=unusedFunction
90+
- --suppress=unmatchedSuppression
91+
92+
- repo: https://github.com/AleksaC/hadolint-py
93+
rev: v2.14.0
94+
hooks:
95+
- id: hadolint
96+
args:
97+
- --ignore=DL3005 # apt-get upgrade is sometimes necessary in base-image builds
98+
99+
- repo: https://github.com/shellcheck-py/shellcheck-py
100+
rev: v0.11.0.1
101+
hooks:
102+
- id: shellcheck
103+
104+
- repo: https://github.com/maxwinterstein/shfmt-py
105+
rev: v3.12.0.1
106+
hooks:
107+
- id: shfmt
108+
name: shfmt
109+
entry: shfmt
110+
language: python
111+
args:
112+
- -l # list files whose formatting differs from shfmt's
113+
- -d # error with a diff when the formatting differs
114+
- -i # indentation
115+
- "4" # 4 spaces
116+
- -ci # switch cases will be indented
117+
- -fn # function opening braces are placed on a separate line
118+
- -bn # binary ops like && and | may start a line
119+
- -sr # redirect operators will be followed by a space
120+
- -s # simplify the code
121+
- -w # write result to file instead of stdout
122+
types: [shell]
123+
require_serial: true
124+
exclude_types: [bats]

.pre-commit-config.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# The generic Techmo's pre-commit hooks configuration.
2+
#
3+
# If needed, this file may be used as a starting template for more specific checks.
4+
# Include a modified one in your target repository and pass its path to `.install.sh`.
5+
#
6+
# See https://pre-commit.com for more information.
7+
# See https://pre-commit.com/hooks.html for more hooks.
8+
9+
fail_fast: false
10+
repos:
11+
- repo: https://github.com/pre-commit/pre-commit-hooks
12+
rev: v5.0.0
13+
hooks:
14+
- id: check-added-large-files
15+
- id: check-case-conflict
16+
- id: check-executables-have-shebangs
17+
- id: check-illegal-windows-names
18+
- id: check-json
19+
- id: check-merge-conflict
20+
- id: check-shebang-scripts-are-executable
21+
- id: check-symlinks
22+
- id: check-toml
23+
- id: check-yaml
24+
- id: debug-statements
25+
- id: detect-private-key
26+
- id: end-of-file-fixer
27+
exclude: \.patch$
28+
- id: fix-byte-order-marker
29+
- id: mixed-line-ending
30+
- id: no-commit-to-branch
31+
args: [--branch, master]
32+
- id: requirements-txt-fixer
33+
- id: trailing-whitespace
34+
exclude: \.patch$
35+
args:
36+
- --markdown-linebreak-ext=md
37+
38+
- repo: https://github.com/astral-sh/ruff-pre-commit
39+
rev: v0.15.1
40+
hooks:
41+
- id: ruff-check
42+
args: [--fix, --select, "E,W,F,I,S,UP,B", --extend-ignore, "S101,S603,S607", --line-length, "160"]
43+
- id: ruff-format
44+
args: [--line-length, "160"]
45+
46+
- repo: https://github.com/gitleaks/gitleaks
47+
rev: v8.30.0
48+
hooks:
49+
- id: gitleaks
50+
51+
- repo: https://github.com/codespell-project/codespell
52+
rev: v2.4.1
53+
hooks:
54+
- id: codespell
55+
56+
- repo: https://github.com/pre-commit/mirrors-mypy
57+
rev: v1.19.1
58+
hooks:
59+
- id: mypy
60+
args:
61+
[
62+
--strict,
63+
--ignore-missing-imports,
64+
--check-untyped-defs,
65+
--show-error-codes,
66+
]
67+
68+
- repo: https://github.com/pocc/pre-commit-hooks
69+
rev: v1.3.5
70+
hooks:
71+
- id: clang-format
72+
additional_dependencies: [clang-format]
73+
args:
74+
- --style=file
75+
- --fallback-style=none
76+
- id: cppcheck
77+
additional_dependencies: [cppcheck]
78+
args:
79+
- --std=c++17
80+
- --language=c++
81+
- --enable=all
82+
- --error-exitcode=1
83+
- --inline-suppr
84+
- --suppress=missingInclude
85+
- --suppress=missingIncludeSystem
86+
- --suppress=unusedFunction
87+
- --suppress=unmatchedSuppression
88+
89+
- repo: https://github.com/AleksaC/hadolint-py
90+
rev: v2.14.0
91+
hooks:
92+
- id: hadolint
93+
args:
94+
- --ignore=DL3005 # apt-get upgrade is sometimes necessary in base-image builds
95+
96+
- repo: https://github.com/shellcheck-py/shellcheck-py
97+
rev: v0.11.0.1
98+
hooks:
99+
- id: shellcheck
100+
101+
- repo: https://github.com/maxwinterstein/shfmt-py
102+
rev: v3.12.0.1
103+
hooks:
104+
- id: shfmt
105+
name: shfmt
106+
entry: shfmt
107+
language: python
108+
args:
109+
- -l # list files whose formatting differs from shfmt's
110+
- -d # error with a diff when the formatting differs
111+
- -i # indentation
112+
- "4" # 4 spaces
113+
- -ci # switch cases will be indented
114+
- -fn # function opening braces are placed on a separate line
115+
- -bn # binary ops like && and | may start a line
116+
- -sr # redirect operators will be followed by a space
117+
- -s # simplify the code
118+
- -w # write result to file instead of stdout
119+
types: [shell]
120+
require_serial: true
121+
exclude_types: [bats]

0 commit comments

Comments
 (0)