From 9e4b117eb055bfd22dfd33657c0fb52a9181b517 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 7 Feb 2025 10:56:28 +0800 Subject: [PATCH] Devcontainer compatibility fixes - missing Python 2 six - pylint relative imports --- .devcontainer/Dockerfile | 1 + .devcontainer/devcontainer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ed4f2b89..5c181dbc 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -18,6 +18,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ python-setuptools \ python2.7 \ python2.7-dev \ + python-six \ python3 \ python3-dev \ python3-flake8 \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0f551c0a..d00fdd11 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,7 +18,7 @@ ], "settings": { "flake8.args": ["--config=setup.cfg"], - "pylint.args": ["--rcfile=setup.cfg"], + "pylint.args": ["--rcfile=setup.cfg", "--init-hook", "import sys;sys.path.append('src')"], "terminal.integrated.shell.linux": "/usr/bin/zsh", "terminal.integrated.defaultProfile.linux": "zsh", "terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'",