chore: set up pre-commit hooks and CI/CD workflow

- Add a new GitHub Actions workflow (`lint.yml`)
- Update `CONTRIBUTING.md` and `Development.md` to reflect the new linting setup and guide contributors.
- Include a TypeScript type checking script (`typescript-typecheck.js`)
This commit is contained in:
Aditya Bavadekar
2025-10-22 00:02:21 +05:30
committed by James Murdza
parent e04bfaea5e
commit 51ee79a9d2
6 changed files with 144 additions and 44 deletions
+8 -1
View File
@@ -8,6 +8,13 @@ repos:
language: node
files: \.(ts|tsx|js|jsx|json|md|yaml|yml)$
- repo: local
hooks:
- id: tsc
name: TypeScript type check
entry: node ./scripts/typescript-typecheck.js
language: node
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
@@ -31,7 +38,7 @@ repos:
- id: ruff
name: ruff linter
language_version: python3.11
args: ['--fix', '--ignore', 'E501,E402'] # Ignore line length and module level import not at top of file
args: ['--fix', '--ignore', 'E501,E402,I001,I002'] # Ignore line length, module level import not at top of file, and import sorting issues
files: \.(py)$
- repo: https://github.com/pre-commit/mirrors-mypy