Ruff vs. Flake8 vs. Pylint: SPEED TEST

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • POWAAAHHHH!
    -
    Commands:
    • time flake8 tensorflow--select F,E4,E7,E9,B0,B904,B905 --ignore F723,E704,B001,B028,B030,B031
    • time ruff check tensorflow --select F --select E4 --select E7 --select E9 --select B --ignore F842
    • time pylint tensorflow --disable=all --enable=E1142,E1310,E1307,E2502,E1303,E0605,E0604,E1206,E1205,E1304,E1302,E0211,E0213,E0107,E0117,E0103,E0711,E0101,E0104,E0001,E1301,E0602,E0118,E0105,W1401,W0199,W0702,W0160,W0102,W0705,W0109,W0106,W1309,W1515,W0603,W0602,W1405,W0410,W0622,W0613,W1304,W1301,W0611,W0612,W0120,W0401,C0202,C0198,C2503,C0501,C0199,C0112.C0103,C0301,C2201,C0115,C0304,C0116,C0114,C0410,C0121,C0325,C0412,C0123,C0414,C0411,C0413,C0401,C0402,R0133,R0124,R6003,R1701,C6002,R1717,R1728,R1715,R1718,R1722,R1706,R5501,R1710,R0123,R2004,R1725,R1260,R0912,R0911,R0915,R1707,R1721,R1729,R1735,R1734,R0205 ((for parallelised, add -j 0)
    • time ruff check tensorflow --select PLE --select PLR --select PLW --select F502 --select F524 --select F506 --select N805 --select B002 --select F701 --select F702 --select F901 --select F706 --select E999 --select F501 --select F821 --select F704 --select W605 --select F631 --select E722 --select SIM108 --select B006 --select B014 --select B018 --select F541 --select T100 --select Q000 --select F404 --select A001 --select ARG001 --select F507 --select F504 --select F401 --select F841 --select F403 --select N804 --select Q002 --select SIM110 --select SIM111 --select D210 --select D419 --select N815 --select E501 --select SIM300 --select D101 --select W292 --select D103 --select D100 --select E401 --select E711 --select E712 --select UP034 --select I001 --select E721 --select PLC0414 --select I001 --select E402 --select UP007 --select UP006 --select C402 --select C417 --select SIM401 --select C401 --select SIM108 --select RET501 --select RET502 --select F632 --select UP008 --select C901 --select COM818 --select C417 --select C406 --select C405 --select UP004
    If you enjoy my content, consider supporting me on Patreon or becoming a member!
    patreon.carber...
    join.carberra.xyz
    If you need help with anything, feel free to join the Discord server:
    discord.carber...
    I get a lot of people asking, so here's my Visual Studio Code setup!
    • My Visual Studio Code ...
    -
    If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
    #python #coding #howto

Komentáře • 7

  • @Chris-rm1pn
    @Chris-rm1pn Před rokem +3

    Fun fact, ruff internally uses parts of RustPython a rust implementation of Python interpreter

    • @Carberra
      @Carberra  Před rokem +3

      Should've known 😆 Do you know if RustPython is faster than CPython? If so, would be good for me to look into.

    • @Chris-rm1pn
      @Chris-rm1pn Před rokem +1

      ​@@Carberra No idea, it's definitely *blazingly fast* however from what I've seen it's still under development and most likely not suited as CPython replacement just yet.
      I myself would need to look deeper into it to tell you more about it 😅

    • @Carberra
      @Carberra  Před rokem

      Huh interesting, one to keep an eye on for sure.

  • @wilsonusman
    @wilsonusman Před rokem +1

    Love your videos, the only feedback I have is if you can zoom into the editor just a bit.

  • @helish_88
    @helish_88 Před rokem +3

    I want to see 100k views again

    • @Carberra
      @Carberra  Před rokem +1

      We can only hope! It would be incredible if it did.