Code Monkey home page Code Monkey logo

Comments (2)

totaam avatar totaam commented on June 25, 2024

Better now:

find xpra/* -maxdepth 0 -type d -exec echo -n "{}    " \; -exec bash -c "pflake8 {} | wc -l" \; | grep -ve ' 0$'
xpra/client    2173
xpra/net    1237
xpra/platform    3200
xpra/scripts    1020
xpra/server    2594

from xpra.

totaam avatar totaam commented on June 25, 2024

Good enough for now, down to zero warnings with the config we ship, which ignores only a few modules / warnings:

xpra/pyproject.toml

Lines 29 to 53 in e10dbff

[tool.flake8]
max-line-length = 120
exclude = ["xpra/gtk/examples/*.py", "xpra/platform/win32/*", "xpra/platform/darwin/*"]
ignore = ["E203", "E231", "E225", "E226", "E252", "E221", "E741", "E262", "E265"]
per-file-ignores = """
xpra/audio/gstreamer_util.py:E241
xpra/keyboard/layouts.py:E241,E501
xpra/x11/gtk_x11/wm_check.py:E241
xpra/x11/server/seamless.py:E241
xpra/codecs/nvidia/util.py:E241
xpra/codecs/loader.py:E241
xpra/codecs/checks.py:E501
xpra/gtk/versions.py:E241
xpra/client/mixins/windows.py:E241
xpra/client/gui/paint_colors.py:E241
xpra/scripts/config.py:E241
xpra/net/rfb/d3des.py:E241
xpra/server/source/source_stats.py:E116,E501
xpra/server/window/compress.py:E501
xpra/server/mixins/fileprint.py:E241
xpra/server/mixins/controlcommands.py:E501,E241
xpra/platform/gui.py:E241
xpra/platform/paths.py:E302
xpra/platform/posix/gui.py:E241
"""

Nothing major here:

  • examples and platform modules (macos and win32)
  • E203 whitespace before ':': 5504 hits
  • E221 multiple spaces before operator: 351
  • E231 missing whitespace after..: 2862
  • E252 missing whitespace around parameter equals: 628
  • E262 inline comment should start with '# ': 224
  • E265 block comment should start with '# ' : 1653
  • E741 ambiguous variable name..: 145

from xpra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.