-
Notifications
You must be signed in to change notification settings - Fork 150
chore: add linting workflow #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Lint | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| flake8: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.9' | ||
| - name: Install flake8 | ||
| run: pip install flake8 | ||
| - name: Run flake8 | ||
| run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python linting workflow added to TypeScript-only repositoryLow Severity This workflow adds Python flake8 linting to a TypeScript/JavaScript repository that contains no Python files. The codebase is an npm package ( |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python linter added to TypeScript-only project
Medium Severity
This workflow adds
flake8(a Python linter) to a TypeScript project that contains no Python files. The linting step will always pass without checking any actual code becauseflake8only processes.pyfiles. The PR's stated goal of "ensuring code quality and preventing syntax errors" cannot be achieved since the codebase is TypeScript. The project already has ESLint configured for TypeScript linting in.eslintrc.cjsand the release workflow runspnpm lint.