From 4d58dcc7090798cc848f7f0aad67dcfe5659e95e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 12:02:09 +0200 Subject: [PATCH] fix: ignore uv.lock in editorconfig, disable PYTHON_PYLINT/PYRIGHT in mega-linter, use uv for dep install (#11) * Initial plan * fix: ignore uv.lock in editorconfig and disable PYTHON_PYLINT/PYRIGHT in mega-linter Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com> * fix: update outdated comment in mega-linter config Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com> * fix: use uv instead of pip to install deps in mega-linter config Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com> --- .editorconfig | 3 +++ .mega-linter.yml | 12 +++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 2f23326..5ae6a1e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,5 +22,8 @@ indent_style = tab trim_trailing_whitespace = false max_line_length = 200 +[uv.lock] +max_line_length = unset + [*.{yml,toml}] max_line_length = 200 diff --git a/.mega-linter.yml b/.mega-linter.yml index bee0eee..8596d73 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -2,8 +2,14 @@ # MegaLinter configuration # https://megalinter.io/latest/configuration/ -# Install Python dependencies before linting so pylint and pyright -# can resolve imports from requirements.txt (e.g. pytest, requests) +# Disable linters that are replaced by uv-based workflows +DISABLE_LINTERS: + - PYTHON_PYLINT + - PYTHON_PYRIGHT + +# Install Python dependencies before linting using uv PRE_COMMANDS: - - command: pip install -r requirements.txt + - command: pip install uv + cwd: workspace + - command: uv sync --all-groups cwd: workspace