mirror of
https://github.com/trycua/computer.git
synced 2026-04-27 10:30:31 -05:00
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:
committed by
James Murdza
parent
e04bfaea5e
commit
51ee79a9d2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user