git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSoC][PATCH 2/2] git-ci: update .pylintrc to ignore current warning

From
VTViet Hung Tran <viethtran1620@gmail.com>
Date
Mar 14, 2018, 03:28 UTC
Message-ID
<20180314032851.11527-2-viethtran1620@gmail.com>
In-Reply-To
<20180314032851.11527-1-viethtran1620@gmail.com>

pylint's check for unused variables, global statements, redefined builtins, undefined loop variables, and unused imports are disabled.

The current configuration allows git-p4.py to pass the check in Travis CI in my forked repository.

Here is the link for the successful built: https://travis-ci.org/VietHTran/git/builds/353155158 
Signed-off-by: Viet Hung Tran <viethtran1620@gmail.com>
---
 .pylintrc | 7 -------
 1 file changed, 7 deletions(-)
diff --git a/.pylintrc b/.pylintrc
index 0db42d646..09a0019d6 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -60,20 +60,13 @@ enable=import-error,
        used-before-assignment,
        cell-var-from-loop,
        global-variable-undefined,
-       redefined-builtin,
        redefine-in-handler,
-       unused-import,
        unused-wildcard-import,
        global-variable-not-assigned,
-       undefined-loop-variable,
-       global-statement,
        global-at-module-level,
        bad-open-mode,
        redundant-unittest-assert,
        boolean-datetime,
-       # Has common issues with our style due to
-       # https://github.com/PyCQA/pylint/issues/210
-       unused-variable
 
 # Things we'd like to enable someday:
 # redefined-outer-name (requires a bunch of work to clean up our code first)
-- 
2.16.2.440.gc6284da
Previous: Viet Hung Tran
Message 8 of 8 in “git-ci: use pylint to analyze the git-p4 code”
  1. git-ci: use pylint to analyze the git-p4 codeViet Hung Tran, Mar 12, 2018
  2. [GSoC][PATCH] git-ci: use pylint to analyze the git-p4 codeViet Hung Tran, Mar 12, 2018
  3. Lars SchneiderMar 12, 2018
  4. [GSoC][PATCH] git-ci: use pylint to analyze the git-p4 codeViet Hung Tran, Mar 13, 2018
  5. Luke DiamandMar 13, 2018
  6. [GSoC][PATCH] git-ci: use pylint to analyze the git-p4 codeViet Hung Tran, Mar 14, 2018
  7. [GSoC][PATCH 1/2] git-ci: add .pylintrc fileViet Hung Tran, Mar 14, 2018
  8. [GSoC][PATCH 2/2] git-ci: update .pylintrc to ignore current warningViet Hung Tran, Mar 14, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.