From b3543b0ce84cad2a8bae9c1a8ca14e0c8d9730c8 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Thu, 30 Jun 2022 13:42:44 +0300 Subject: [PATCH] pylint: Provide ignore paths for Pylint 2.14.4+ New pylint 2.14.4 includes fix for https://github.com/PyCQA/pylint/issues/6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/pyproject_installer/pyproject_installer/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/pyproject_installer/pyproject_installer/pyproject.toml . (exited with code 30) Fixes: https://github.com/stanislavlevin/pyproject_installer/issues/11 Signed-off-by: Stanislav Levin --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 004a31f..2ae0520 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,9 @@ recursive = true ignore-paths = [ ".*/_vendor/.*", '.*/\.git/.*', + '^.git/.*', # dot escaping doesn't work, see pylint#5398 '.*/\.tox/.*', + '^.tox/.*', # dot escaping doesn't work, see pylint#5398 ] suggestion-mode = "yes" persistent="no"