Skip to content

Conversation

@maxxgx
Copy link
Contributor

@maxxgx maxxgx commented Nov 3, 2025

πŸ“ Description

Add pre-commit config in /application folder.
Switch from pre-commit to prek.
Add backend unit test GHA

✨ Changes

Select what type of change your PR is:

  • πŸš€ New feature (non-breaking change which adds functionality)
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • πŸ”„ Refactor (non-breaking change which refactors the code base)
  • ⚑ Performance improvements
  • 🎨 Style changes (code style/formatting)
  • πŸ§ͺ Tests (adding/modifying tests)
  • πŸ“š Documentation update
  • πŸ“¦ Build system changes
  • 🚧 CI/CD configuration
  • πŸ”§ Chore (general maintenance)
  • πŸ”’ Security update
  • πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)

βœ… Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • πŸ“š I have made the necessary updates to the documentation (if applicable).
  • πŸ§ͺ I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
  • 🏷️ My PR title follows conventional commit format.

For more information about code review checklists, see the Code Review Checklist.

@maxxgx maxxgx requested a review from samet-akcay as a code owner November 3, 2025 16:00
Copilot AI review requested due to automatic review settings November 3, 2025 16:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a pre-commit configuration file for the /application folder to enable automated code quality checks for both backend (Python) and frontend (Node.js) code. The configuration is scoped specifically to the application directory to avoid conflicts with the root-level anomalib pre-commit configuration.

Key changes:

  • Adds .pre-commit-config.yaml with hooks for Python (Ruff, mypy) and UI (Prettier, ESLint) tooling
  • Configures version pins matching application dependencies (Ruff v0.11.2, mypy v1.17.0, Node 24.2.0)
  • Includes markdown linting for documentation consistency

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 4, 2025 15:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 24 changed files in this pull request and generated no new comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 4, 2025 17:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 18 out of 31 changed files in this pull request and generated 2 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maxxgx maxxgx changed the title chore(inspect): fix pre commit chore(inspect): fix pre commit and GHA Nov 5, 2025
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
- Replace custom pre-commit action with j178/prek-action@v1
- Update tox.ini to use prek instead of pre-commit
- Remove obsolete custom pre-commit action
- Add lock file exclusion to size check
- Enables workspace mode for monorepo with multiple pre-commit configs

Signed-off-by: Ma, Xiangxiang <[email protected]>
Copilot AI review requested due to automatic review settings November 5, 2025 09:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 18 out of 31 changed files in this pull request and generated 2 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
Copilot AI review requested due to automatic review settings November 5, 2025 09:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 18 out of 31 changed files in this pull request and generated no new comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 5, 2025 12:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 35 out of 45 changed files in this pull request and generated 3 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Ma, Xiangxiang <[email protected]>
Copilot AI review requested due to automatic review settings November 5, 2025 13:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 35 out of 45 changed files in this pull request and generated 5 comments.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings November 5, 2025 13:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 35 out of 45 changed files in this pull request and generated 1 comment.


πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maxxgx maxxgx merged commit 19a3461 into open-edge-platform:feature/geti-inspect Nov 5, 2025
18 checks passed
camiloHimura pushed a commit to camiloHimura/anomalib that referenced this pull request Nov 11, 2025
* add pre-commit config to application

Signed-off-by: Ma, Xiangxiang <[email protected]>

* comment

Signed-off-by: Ma, Xiangxiang <[email protected]>

* use prek

Signed-off-by: Ma, Xiangxiang <[email protected]>

* fix style

Signed-off-by: Ma, Xiangxiang <[email protected]>

* geti-inspect as optional dependency for anomalib

Signed-off-by: Ma, Xiangxiang <[email protected]>

* ci: migrate to prek for workspace mode support

- Replace custom pre-commit action with j178/prek-action@v1
- Update tox.ini to use prek instead of pre-commit
- Remove obsolete custom pre-commit action
- Add lock file exclusion to size check
- Enables workspace mode for monorepo with multiple pre-commit configs

Signed-off-by: Ma, Xiangxiang <[email protected]>

* update uv lock

Signed-off-by: Ma, Xiangxiang <[email protected]>

* comment

Signed-off-by: Ma, Xiangxiang <[email protected]>

* fix style

Signed-off-by: Ma, Xiangxiang <[email protected]>

* fix style

Signed-off-by: Ma, Xiangxiang <[email protected]>

* fix style

Signed-off-by: Ma, Xiangxiang <[email protected]>

* add backend unit tests GHA

Signed-off-by: Ma, Xiangxiang <[email protected]>

* Update application/backend/src/entities/video_stream.py

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Max Xiang <[email protected]>

---------

Signed-off-by: Ma, Xiangxiang <[email protected]>
Signed-off-by: Max Xiang <[email protected]>
Co-authored-by: Copilot <[email protected]>
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.

4 participants