Skip to content

Try to add qodana for frontend#23

Merged
xprilion merged 2 commits into
mainfrom
dev
Apr 27, 2026
Merged

Try to add qodana for frontend#23
xprilion merged 2 commits into
mainfrom
dev

Conversation

@xprilion
Copy link
Copy Markdown
Owner

This pull request introduces pre-commit hooks for both backend and frontend code quality enforcement, and splits the Qodana code quality workflow into separate jobs for backend and frontend. It also adds configuration files for Qodana to target the appropriate codebases and updates related dependencies and scripts for streamlined developer experience.

Code Quality Automation and Tooling Enhancements:

  • Added .pre-commit-config.yaml to introduce pre-commit hooks: ruff for backend (Python) linting/formatting and eslint for frontend (TypeScript/React) linting.
  • Updated Makefile to add commands for installing, running, and updating pre-commit hooks, improving developer workflow for code quality checks.
  • Added pre-commit as a development dependency in backend/pyproject.toml to ensure the backend environment supports pre-commit hooks.

Qodana Code Quality Workflow Improvements:

  • Refactored .github/workflows/qodana_code_quality.yml to run Qodana as two separate jobs: one for backend (Python) and one for frontend (JS/TS), each with its own configuration and secrets.
  • Split and updated Qodana configuration files: renamed qodana.yaml to qodana-backend.yaml (now excluding frontend and other directories from backend checks) and added qodana-frontend.yaml for frontend-specific Qodana analysis. [1] [2]

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

Qodana for Python

167 new problems were found

Inspection name Severity Problems
Unused imports 🔶 Warning 2
Invalid type hints definitions and usages 🔶 Warning 1
Redundant character escape 🔶 Warning 1
Unused local symbols ◽️ Notice 67
Accessing a protected member of a class or a module ◽️ Notice 43
Unclear exception clauses ◽️ Notice 30
Shadowing names from outer scopes ◽️ Notice 10
Method is not declared static ◽️ Notice 6
PEP 8 naming convention violation ◽️ Notice 4
Non-optimal list declaration ◽️ Notice 2
An instance attribute is defined outside init`` ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@xprilion xprilion closed this Apr 27, 2026
@xprilion xprilion reopened this Apr 27, 2026
@sonarqubecloud
Copy link
Copy Markdown

@xprilion xprilion merged commit d31fdc2 into main Apr 27, 2026
6 checks passed
@xprilion xprilion deleted the dev branch April 27, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant