#2204 pylint: fix F36 where os module isn't auto-imported
Merged 3 months ago by praiskup. Opened 3 months ago by praiskup.
copr/ praiskup/copr pylint-os-import  into  main

file modified
+1
@@ -22,6 +22,7 @@ 

  ignored-modules=alembic,setproctitle

  

  init-hook=

+     import os

      import subprocess

      gitrootdir = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip()

      sys.path.insert(0, os.path.join(gitrootdir, '.pylintpath'))

file modified
+1
@@ -5,6 +5,7 @@ 

  persistent=no

  

  init-hook=

+     import os

      import subprocess

      gitrootdir = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip()

      sys.path.insert(0, os.path.join(gitrootdir, '.pylintpath'))

no initial comment

Build succeeded.

Commit e094c75 fixes this pull-request

Pull-Request has been merged by praiskup

3 months ago
Metadata