1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

Unterhaltung

Nachrichten

  1. clacke clacke

    flakehell.readthedocs.io/ #HPREp

    Friday, 05-Jun-20 10:46:39 UTC von libranet.de
    • clacke clacke

      Troubleshooting things on my phone on my way home.

      flake8 mysteriously reports pylint warnings when flakehell is installed. But flake8 does it better. flakehell has false positives on "Unable to import" because the top dir is not in sys.path.

      Friday, 05-Jun-20 11:15:43 UTC
    • clacke clacke

      Here we go:

      github.com/life4/flakehell/blo…

      [tool.flit.entrypoints."flake8.extension"]
      pylint = "flakehell.plugins:PyLintChecker"

      Friday, 05-Jun-20 11:31:27 UTC
    • clacke clacke

      Oh. flake8 cannot run in termux:

      ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.

      But now I'm home anyway so.

      Friday, 05-Jun-20 11:47:48 UTC
    • clacke clacke

      Other than this issue flakehell is awesome and does things better than our homegrown similar solution.

      Friday, 05-Jun-20 12:28:40 UTC
    • clacke clacke

      The plot thickens:$ flake8 ./asdf/zxcv.py:1:1: F401 'qwer' imported but unused ./asdf/zxcv.py:1:1: E0401 Unable to import 'qwer' ./asdf/zxcv.py:1:1: W0611 Unused import qwer$ flake8 -j 1 ./asdf/zxcv.py:1:1: F40…

      Saturday, 06-Jun-20 06:37:57 UTC
    • clacke clacke

      If I put a try-except-print `import qwer` inside the checker, it fails both in the parallel and the sequential case, even though they report differently. Need to check how pylint verifies E0401.

      Saturday, 06-Jun-20 06:45:10 UTC
    • clacke clacke

      It uses astroid:

      gitlab.com/pycqa/pylint/-/blob…

      So let's see if we can call astroid with some thing and figure out what differs. sys.path and os.getcwd() show no difference between parallel and sequential mode.

      Saturday, 06-Jun-20 06:55:24 UTC
    • clacke clacke

      omg I found itThe single-process sequential case accidentally finds the `qwer` module because it happens to be in Astroid's cache after the linter checked `qwer` itself.gitlab.com/pycqa/astroid/-/blo…So it is *no…

      Saturday, 06-Jun-20 07:19:21 UTC
    • clacke clacke

      This original observation on whether flakehell or flake8 shows the false positive is funny. On my home system both were showing it at first, and now it's flake8 showing it and flakehell not. I'm guessing it's something about file system order or something.

      Saturday, 06-Jun-20 07:57:13 UTC

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Hilfe
  • Über
  • FAQ
  • AGB
  • Privatsphäre
  • Quellcode
  • Version
  • Kontakt

1w6 uRPG ist ein Mikrobloggingdienst von Arne (Drak) Babenhauserheide. Es wird mit der Mikrobloggingsoftware StatusNet (Version 1.1.1-release) betrieben, die unter der GNU Affero General Public License erhältlich ist. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 Alle Inhalte und Daten von 1w6 uRPG sind unter der Creative Commons Attribution 3.0 Lizenz verfügbar.