Fix pre-commit linting errors across Python and TypeScript codebase#845
Open
Fix pre-commit linting errors across Python and TypeScript codebase#845
Conversation
Co-authored-by: mrrobot47 <[email protected]>
Co-authored-by: mrrobot47 <[email protected]>
Co-authored-by: mrrobot47 <[email protected]>
Co-authored-by: mrrobot47 <[email protected]>
Copilot
AI
changed the title
[WIP] Fix all pre-commit hook linting errors
Fix pre-commit linting errors across Python and TypeScript codebase
Feb 12, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes pre-commit linting errors across the codebase by addressing Python and TypeScript/JavaScript formatting violations. The changes ensure compliance with RUF059 (Python) and ESLint rules (TypeScript/JavaScript) through automated formatting and targeted fixes for unused variables.
Changes:
- Renamed unused unpacked variable in Python to satisfy RUF059 linting rule
- Applied Prettier formatting fixes across 256+ TypeScript/JavaScript files (trailing commas, line breaks, whitespace)
- Added ESLint disable pragmas for intentionally unused destructured variables in rest patterns
Reviewed changes
Copilot reviewed 250 out of 257 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
next_pms/api/__init__.py |
Renamed unused variable account to _account |
tests/e2e/**/*.js |
Applied Prettier formatting (trailing commas, line breaks) |
frontend/**/*.ts(x) |
Applied Prettier formatting and consistent code style |
frontend/eslint.config.js |
Formatted ESLint configuration with consistent quotes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-commit hooks were failing on multiple files due to Python and TypeScript linting violations. All fixable errors have been resolved.
Changes
Python (1 file)
next_pms/api/__init__.py: Renamed unused unpacked variableaccount→_accountto satisfy RUF059TypeScript (8 files)
anytypes withunknownorRecord<string, unknown>in type signatureseslint-disablepragmas for intentionally unused destructured variables in rest patterns:eslint-disablefor unused error bindings in empty catch blocksAuto-formatted (256 files)
Hook Status
13/14 hooks passing. Semgrep hook fails due to network restriction: cannot reach
semgrep.devto fetchr/python.lang.correctnessruleset. This is an infrastructure constraint, not a code issue.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
semgrep.dev/home/REDACTED/.cache/pre-commit/repoivcsn00e/py_env-python3.12/bin/pysemgrep osemgrep --config ./.frappe-semgrep/rules --config r/python.lang.correctness --error --skip-REDACTED-extensions --metrics off(dns block)/home/REDACTED/.cache/pre-commit/repoivcsn00e/py_env-python3.12/bin/pysemgrep osemgrep --config ./.frappe-semgrep/rules --config r/python.lang.correctness --error --skip-REDACTED-extensions --metrics off ty_report/spare_--config(dns block)/home/REDACTED/.cache/pre-commit/repoivcsn00e/py_env-python3.12/bin/pysemgrep osemgrep --config ./.frappe-semgrep/rules --config r/python.lang.correctness --error --skip-REDACTED-extensions --metrics off .tsx .tsx x packages/desi eam/�� s/resource-management/components/empty/types.ts packages/design-system/src/components/button/butgit ponents/header.tpackages/app/src/app/components/timesheet-table/components/submitButton.tsx pms/frontend/nodpackages/app/src/app/components/customViewWrapper.tsx omponents/commengit /app/pages/resoupush e-management/src-v /app/components/origin(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.