Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ jobs:
unzip -o *.zip
rm *.zip
ls -l
- name: Copy utils folder
shell: bash
run: |
cp -r utils backend/dist/utils
cp -r utils sync-microservice/dist/utils
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.241"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
Comment on lines +2 to +3
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

latest release astral-sh ruff-pre-commit 2025 2026

💡 Result:

As of January 25, 2026, the latest astral-sh/ruff-pre-commit release is v0.14.14, released January 22, 2026. [1]

If you specifically mean the latest release that happened in 2025, it was v0.14.10, released December 18, 2025. [1]


🌐 Web query:

latest stable release Black formatter Python 2025 2026

💡 Result:

  • Latest stable Black release (as of Jan 25, 2026): 26.1.0, released Jan 18, 2026. (pypi.org)
  • Key 2025-era stable-style milestone: 25.1.0 (introduces the “2025 stable style”). (pypi.org)

Citations:


Update pre-commit hook versions to current releases.

The pinned versions are significantly outdated:

  • ruff-pre-commit: v0.4.10 (pinned) → v0.14.14 (current, Jan 2026) — 10 minor versions behind
  • black: 24.4.2 (pinned) → 26.1.0 (current, Jan 2026) — 2 major versions behind

These gaps likely include critical fixes, performance improvements, and behavior changes. Update to the latest versions.

Also applies to: 9-9

🤖 Prompt for AI Agents
In @.pre-commit-config.yaml around lines 2 - 3, Update the pinned pre-commit
hook versions: change the ruff pre-commit rev for the repo entry
'https://github.com/astral-sh/ruff-pre-commit' from v0.4.10 to v0.14.14, and
update the Black hook rev (the 'https://github.com/psf/black' repo entry
currently pinned to 24.4.2) to 26.1.0; ensure you run pre-commit autoupdate or
adjust other hook entries consistently and verify the YAML remains valid after
updating the 'rev:' values.

hooks:
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: "22.3.0"
rev: 24.4.2
hooks:
- id: black
language_version: python3
8 changes: 8 additions & 0 deletions COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright © 2025 AOSSIE <br />
All rights reserved.

All works in this repository may be used according to the conditions
stated in the LICENSE.md file available in this repository.

These works are WITHOUT ANY WARRANTY, without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
595 changes: 595 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ...existing code...
from utils.cache import invalidate_cache


# Add cache reset option when application starts
def initialize_app():
# ...existing code...
Expand Down
2 changes: 1 addition & 1 deletion backend/app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
MODEL_EXPORTS_PATH = "app/models/ONNX_Exports"

# Microservice URLs
SYNC_MICROSERVICE_URL = "http://localhost:8001/api/v1"
SYNC_MICROSERVICE_URL = "http://localhost:52124"

CONFIDENCE_PERCENT = 0.6
# Object Detection Models:
Expand Down
15 changes: 10 additions & 5 deletions backend/app/logging/setup_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,16 @@ def emit(self, record: logging.LogRecord) -> None:
# Create a message that includes the original module in the format
msg = record.getMessage()

# Find the appropriate logger
logger = get_logger(module_name)

# Log the message with our custom formatting
logger.log(record.levelno, f"[uvicorn] {msg}")
record.msg = f"[{module_name}] {msg}"
record.args = ()
# Clear exception / stack info to avoid duplicate traces
record.exc_info = None
record.stack_info = None

root_logger = logging.getLogger()
for handler in root_logger.handlers:
if handler is not self:
handler.handle(record)


def configure_uvicorn_logging(component_name: str) -> None:
Expand Down
Loading