From 2e22efac17a304a73f683ebf977660e08be5ca45 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 14:03:49 +0200 Subject: [PATCH] fix: resolve MegaLinter editorconfig and pylint/pyright failures (#9) --- .mega-linter.yml | 9 +++++++++ README.md | 2 +- aeonview.py | 2 +- aeonview_test.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .mega-linter.yml diff --git a/.mega-linter.yml b/.mega-linter.yml new file mode 100644 index 0000000..bee0eee --- /dev/null +++ b/.mega-linter.yml @@ -0,0 +1,9 @@ +--- +# 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) +PRE_COMMANDS: + - command: pip install -r requirements.txt + cwd: workspace diff --git a/README.md b/README.md index 431f05f..fb09f2c 100644 --- a/README.md +++ b/README.md @@ -97,4 +97,4 @@ MIT License © 2025 Ismo Vuorinen [lm-l]: https://opensource.org/licenses/MIT [sample]: https://www.youtube.com/watch?v=SnywvnjHpUk - \ No newline at end of file + diff --git a/aeonview.py b/aeonview.py index 2850be0..7d6e664 100644 --- a/aeonview.py +++ b/aeonview.py @@ -535,4 +535,4 @@ if __name__ == "__main__": app = AeonViewApp() app.run() -# vim: set tw=100 fo=cqt wm=0 et: \ No newline at end of file +# vim: set tw=100 fo=cqt wm=0 et: diff --git a/aeonview_test.py b/aeonview_test.py index 55014c4..b334c78 100644 --- a/aeonview_test.py +++ b/aeonview_test.py @@ -339,4 +339,4 @@ def test_setup_logger_non_verbose(mock_basic_config): AeonViewHelpers.setup_logger(verbose=False) mock_basic_config.assert_called_once_with( level=logging.INFO, format="[%(levelname)s] %(message)s" - ) \ No newline at end of file + )