mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-08-06 17:02:59 +02:00
bf8e0620a5
- PacketGroupDetail: render the path-node popover via createPortal(document.body) with position:absolute + document coordinates (rect + scrollX/scrollY) instead of position:fixed with one-shot viewport coords, so it scrolls with the page rather than staying pinned to the viewport. Outside-click/Escape close unchanged (DOM-based). - Makefile: 'make test' now runs pytest then the frontend vitest suite via a new 'test-frontend' target (npm run test:frontend). - pre-commit: add a local 'frontend-typecheck' hook (language: system) running 'npm run typecheck' (tsc --noEmit) on TS/TSX + tsconfig/package(-lock).json changes. - AGENTS.md: document the pre-commit TS gate and that 'make test' includes the frontend. Verified: tsc clean, vitest 49 passed, pre-commit --all-files green, make test (1459 backend passed + 49 frontend passed).
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-merge-conflict
|
|
- id: check-toml
|
|
- id: debug-statements
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 26.1.0
|
|
hooks:
|
|
- id: black
|
|
args: ["--line-length=88"]
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ["--config=.flake8"]
|
|
additional_dependencies:
|
|
- flake8-bugbear
|
|
- flake8-comprehensions
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: mypy
|
|
exclude: ^alembic/
|
|
additional_dependencies:
|
|
- pydantic>=2.0.0
|
|
- pydantic-settings>=2.0.0
|
|
- sqlalchemy>=2.0.0
|
|
- fastapi>=0.100.0
|
|
- alembic>=1.7.0
|
|
- types-paho-mqtt>=1.6.0
|
|
- types-PyYAML>=6.0.0
|
|
|
|
# Frontend TypeScript gate. Runs in the host node toolchain (language: system)
|
|
# so it resolves types from the project's node_modules — requires `npm install`.
|
|
# `pass_filenames: false`: tsc typechecks the whole project (tsconfig include).
|
|
- repo: local
|
|
hooks:
|
|
- id: frontend-typecheck
|
|
name: frontend typecheck (tsc --noEmit)
|
|
entry: npm run typecheck
|
|
language: system
|
|
pass_filenames: false
|
|
files: '(spa-react/.*\.tsx?$|^tsconfig\.json$|^package(-lock)?\.json$)'
|