Skip to content

Commit 3f8ec42

Browse files
Improve Vedic CLI Tooling, Add Pre-commit Hooks, and Format Codebase (#39)
* format: apply code formatting to vedic files * setup: integrate pre-commit for automatic formatting and linting * format: apply formatting to various file types * fix(cli): cleanup and format CLI tools, fix typos and syntax - Fixed broken Python syntax in `benchmark_test.py` - Refactored `cli.py`: - Corrected typos and naming issues (e.g., `ENV_VARBOSE` → `ENV_VERBOSE`) - Improved command-line argument parsing consistency - Added support for running `pre-commit` after formatting - Enhanced user messages and command output - Ensured tool checks for cargo, wasm-pack, and pre-commit
1 parent e31f8eb commit 3f8ec42

File tree

287 files changed

+282
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+282
-170
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ insert_final_newline = true
66
indent_style = space
77
indent_size = 4
88
charset = utf-8
9-
trim_trailing_whitespace = true
9+
trim_trailing_whitespace = true

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @PtPrashantTripathi
1+
* @PtPrashantTripathi

.github/workflows/Release_CICD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
- **vedic-linux-gnu-i686.tar.xz** : standalone binary for Linux on i686 architecture using GNU C Library
146146
- **vedic-linux-musl-x86_64.tar.xz** : standalone binary for Linux on x86_64 architecture using musl C library (static binary, no libc dependency)
147147
- **vedic-linux-musl-aarch64.tar.xz** : standalone binary for Linux on aarch64 architecture using musl C library (static binary, no libc dependency)
148-
- **vedic-linux-gnueabihf-armv7.tar.xz** : standalone binary for Raspberry PI Linux on armv7 architecture using GNU C Library
148+
- **vedic-linux-gnueabihf-armv7.tar.xz** : standalone binary for Raspberry PI Linux on armv7 architecture using GNU C Library
149149
- **vedic-android-aarch64.tar.xz** : standalone binary for Android on aarch64 architecture
150150
- **vedic-android-armv7.tar.xz** : standalone binary for Android on armv7 architecture
151151
- **vedic-android-i686.tar.xz** : standalone binary for Android on i686 architecture

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ __pycache__
4141

4242
# No lock files.
4343
settings.dat
44-
settings.dat.old
44+
settings.dat.old

.pre-commit-config.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ci:
2+
autoupdate_schedule: monthly
3+
autoupdate_commit_msg: "chore: update pre-commit hooks"
4+
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v5.0.0
8+
hooks:
9+
- id: requirements-txt-fixer
10+
- id: check-case-conflict
11+
- id: check-ast
12+
- id: check-docstring-first
13+
- id: check-added-large-files
14+
- id: check-case-conflict
15+
- id: check-merge-conflict
16+
- id: check-json
17+
- id: check-yaml
18+
- id: check-toml
19+
- id: debug-statements
20+
- id: end-of-file-fixer
21+
- id: trailing-whitespace
22+
23+
- repo: https://github.com/python-jsonschema/check-jsonschema
24+
rev: 0.33.2
25+
hooks:
26+
- id: check-github-workflows
27+
28+
# - repo: https://github.com/codespell-project/codespell
29+
# rev: "v2.3.0"
30+
# hooks:
31+
# - id: codespell
32+
33+
- repo: https://github.com/psf/black
34+
rev: 25.1.0
35+
hooks:
36+
- id: black
37+
language_version: python3
38+
- id: black-jupyter
39+
40+
- repo: https://github.com/pycqa/isort
41+
rev: 6.0.1
42+
hooks:
43+
- id: isort
44+
args: ["--order-by-type", "--length-sort", "black"]
45+
name: isort (python)
46+
47+
- repo: https://github.com/asottile/pyupgrade
48+
rev: v3.20.0
49+
hooks:
50+
- id: pyupgrade
51+
52+
- repo: https://github.com/myint/autoflake
53+
rev: v2.3.1
54+
hooks:
55+
- id: autoflake
56+
args:
57+
- --remove-all-unused-imports
58+
- --remove-unused-variables
59+
- --ignore-init-module-imports
60+
- -r

.vscode/vscode-git-graph.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
},
1616
"showRemoteBranches": true,
1717
"exportedAt": 1680333984445
18-
}
18+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

README.md

Lines changed: 3 additions & 3 deletions

benchmarks/nodejs/invocation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ while (i < 500000) {
6868
foo.method19();
6969
i = i + 1;
7070
}
71-
console.log(i);
71+
console.log(i);

benchmarks/vedic/invocation.ved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@
6868
foo.paddhati19();
6969
i = i + 1;
7070
}
71-
वद(i);
71+
वद(i);

0 commit comments

Comments
 (0)