#flake8 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #flake8, aggregated by home.social.
-
I use #ruff as my #Python linter for the speed #flake8 lacked (with a foot still in the other camp for custom rules), was looking at #ty, but hadn’t had any incentive to try #uv.
Others in the #Python ecosystem might be getting rather more nervous… Looks like the venture capitalists backing #Astral will get their payoff: https://openai.com/index/openai-to-acquire-astral/ 💰
-
When installing dependencies, formatting code, linting it, type-checking it, and building docs with #Poetry or #PDM, #Black, #Flake8, #Mypy and #MkDocs would previously take from 2min to several more, it now takes less than 15 seconds for the whole thing, thanks to #uv, #Ruff, #ty and #Zensical.
This is for 5 #Python versions (3.10 to 3.15).
The DX got much better 🥰
-
When installing dependencies, formatting code, linting it, type-checking it, and building docs with #Poetry or #PDM, #Black, #Flake8, #Mypy and #MkDocs would previously take from 2min to several more, it now takes less than 15 seconds for the whole thing, thanks to #uv, #Ruff, #ty and #Zensical.
This is for 5 #Python versions (3.10 to 3.15).
The DX got much better 🥰
-
When installing dependencies, formatting code, linting it, type-checking it, and building docs with #Poetry or #PDM, #Black, #Flake8, #Mypy and #MkDocs would previously take from 2min to several more, it now takes less than 15 seconds for the whole thing, thanks to #uv, #Ruff, #ty and #Zensical.
This is for 5 #Python versions (3.10 to 3.15).
The DX got much better 🥰
-
When installing dependencies, formatting code, linting it, type-checking it, and building docs with #Poetry or #PDM, #Black, #Flake8, #Mypy and #MkDocs would previously take from 2min to several more, it now takes less than 15 seconds for the whole thing, thanks to #uv, #Ruff, #ty and #Zensical.
This is for 5 #Python versions (3.10 to 3.15).
The DX got much better 🥰
-
Accessing github from work is annoying.
I hope someone else in the world files a bug soon on flake8 not being compatible with a fresh python 3.12+ virtualenv, now that setuptools 82 is out and flake8 is still using the deprecated (now removed) pkg_resources.
-
Just released! 🚀
flake8-implicit-str-concat 0.6.0
A Flake8 plugin to identify those unjoined strings that a first Black run leaves behind:
"111111111111111111111" "222222222222222222222"I hear there's another big release tomorrow? This release adds support for Python 3.14 and for once code changes were needed due to AST deprecation removals.
Also drop support for almost-very-nearly-EOL Python 3.9.
https://github.com/flake8-implicit-str-concat/flake8-implicit-str-concat/releases/tag/0.6.0
#Python #flake8 #release #Python314 #Python39 -
flake8 pre-commit integration for Odoo enhances code quality. Follow this comprehensive guide to set up, configure, and troubleshoot your workflow. #Odoo #flake8 #precommit
https://teguhteja.id/flake8-pre-commit-integration-for-odoo/
-
Anyone knows of a flake8 plugin (or other tool really) that would catch the following mistake:
from django.utils.translation import gettext as _
...
result, _ = function_that_returns_a_tuple()
...
print(_("translated message")) # failsI'd like to flag usage of the `_` throwaway variable, but only when the file has `import gettext as _` (or `gettext_lazy` i guess).
-
Just released: flake8-implicit-str-concat 🚀
🎱 Add support for #Python 3.12-3.13, drop 3.7-3.8
🎱 Switch from Flit to Hatchling + hatch-vcs for dynamic versioning
🎱 Release to PyPI with Trusted Publishing
https://pypi.org/project/flake8-implicit-str-concat/0.5.0/
This #Flake8 plugin helps tidy up after Black:
$ cat 1.py
s = ('111'
'222')
$ black 1.py
reformatted 1.py
All done! ✨ 🍰 ✨
1 file reformatted.
$ cat 1.py
s = "111" "222"
$ flake8 1.py
1.py:1:10: ISC001 implicitly concatenated string literals on one line -
I've made a Python :python: code linting Action ▶️ for GitHub :github: Code Scanning.
It wraps up #Ruff, #Flake8, #Pylint, #Fixit2, #Mypy, #Pyright and #Pytype into an Action that uploads to Code Scanning, part of Advanced Security, the GitHub appsec platform.
ℹ️ that’s free for open source repos hosted on GitHub!
Read 📖 about it👇 on my blog:
https://lnkd.in/es_pd2W6Try ⚙️ it👇 on the Actions ▶️ marketplace:
https://lnkd.in/ei7-H2V9#Python #Linting #CodeQuality #Linters #SARIF #GitHubActions
-
#flake8 installation causes removal #python-minimal - Ok or not? #ubuntu #focal https://askubuntu.com/q/1517699/1593967
-
Turns out after configuration isort can get close enough to what I wanted, and ruff has reimplemented enough of isort that I can just use their linter and fixer.
Which is good, but then there are the open questions about the long term future of #ruff and what it might do or is doing to the open source Python tooling community it is engulfing ( #flake8, black, etc).
-
It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.
Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"
-
@benfulton @leahawasser I think most Python tools that measure cyclomatic complexity are based on or use McCabe, from @nedbat (https://pypi.org/project/mccabe/). #PyLint has it built-in, #Flake8 has plugins (McCabe is one), #Ruff probably has it built-in too.
-
Version 2.1.0 of my flake8-author extension has been released. This version adds support for listing multiple module authors and drops support for Python 3.7.
-
✍️ New post introducing my new #Flake8 plugin that checks your usage of #Python’s logging module.
https://adamj.eu/tech/2023/09/07/introducing-flake8-logging/
-
@warrickball @pyodide I use pyodide to run a whole bunch of things. For example:
IDE for drawing #svg images with #python:
http://svg.orsinium.dev/#Flake8 with plugins:
https://wps.orsinium.dev/ -
#TIL that new release (4.0.0) of Robocop plugin for #RobotFramework got released recently with some neaty rules to further improve Robot Framework code bases.
I think that this is going to be a good moment to implement Robocop verification as CI job in a repository I work on daily at my job.
Although such improvement may require a lot of time, examples of #Ruff or #Flake8 show that in the long run it is no-brainer to implement Robocop as well.
BTW, release notes:
https://github.com/MarketSquare/robotframework-robocop/blob/master/docs/releasenotes/4.0.0.rst -
@python_discussions That's not true. You need to specify `__all__` in `__init__.py` (and other facades) so that #mypy, #flake8, and #ruff know that these packages are imported to be exported. Then flake8 and ruff won't report unused import and mypy will allow reexports from the module.
-
-
Configuring a max length for comments in #flake8 that's different than the normal max length would be fantastic. It's ugly to write a comment and on the same line need to use `# noqa: E501`...
-
I've made a Python :python: code linting Action ▶️ for GitHub :github: Code Scanning.
It wraps up #Ruff, #Flake8, #Pylint, #Fixit2, #Mypy, #Pyright and #Pytype into an Action that uploads to Code Scanning, part of Advanced Security, the GitHub appsec platform.
ℹ️ that’s free for open source repos hosted on GitHub!
Read 📖 about it👇 on my blog:
https://lnkd.in/es_pd2W6Try ⚙️ it👇 on the Actions ▶️ marketplace:
https://lnkd.in/ei7-H2V9#Python #Linting #CodeQuality #Linters #SARIF #GitHubActions
-
I've made a Python :python: code linting Action ▶️ for GitHub :github: Code Scanning.
It wraps up #Ruff, #Flake8, #Pylint, #Fixit2, #Mypy, #Pyright and #Pytype into an Action that uploads to Code Scanning, part of Advanced Security, the GitHub appsec platform.
ℹ️ that’s free for open source repos hosted on GitHub!
Read 📖 about it👇 on my blog:
https://lnkd.in/es_pd2W6Try ⚙️ it👇 on the Actions ▶️ marketplace:
https://lnkd.in/ei7-H2V9#Python #Linting #CodeQuality #Linters #SARIF #GitHubActions
-
I've made a Python :python: code linting Action ▶️ for GitHub :github: Code Scanning.
It wraps up #Ruff, #Flake8, #Pylint, #Fixit2, #Mypy, #Pyright and #Pytype into an Action that uploads to Code Scanning, part of Advanced Security, the GitHub appsec platform.
ℹ️ that’s free for open source repos hosted on GitHub!
Read 📖 about it👇 on my blog:
https://lnkd.in/es_pd2W6Try ⚙️ it👇 on the Actions ▶️ marketplace:
https://lnkd.in/ei7-H2V9#Python #Linting #CodeQuality #Linters #SARIF #GitHubActions
-
I've made a Python :python: code linting Action ▶️ for GitHub :github: Code Scanning.
It wraps up #Ruff, #Flake8, #Pylint, #Fixit2, #Mypy, #Pyright and #Pytype into an Action that uploads to Code Scanning, part of Advanced Security, the GitHub appsec platform.
ℹ️ that’s free for open source repos hosted on GitHub!
Read 📖 about it👇 on my blog:
https://lnkd.in/es_pd2W6Try ⚙️ it👇 on the Actions ▶️ marketplace:
https://lnkd.in/ei7-H2V9#Python #Linting #CodeQuality #Linters #SARIF #GitHubActions
-
Time for a bit of #cleanup and #documentation for #repod
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/146
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/145I wish #ruff was more compatible with #Python 3.10. Using a lot of match-case statements makes it explode sadly. Was a bit looking forward replacing #flake8, #isort, #pycodestyle and #pydocstyle with it.
I hope it improves in the future. It looks really promising (and fast!). -
It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.
Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"
-
It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.
Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"
-
It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.
Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"
-
It still pisses me off that #flake8 complains if you ever bind a #lambda to a name. "Use a #function instead!" it whines.
Every time, I want to channel #Kimi #Raikonnen: "Leave me alone, I know what I'm doing!"
-
Time for a bit of #cleanup and #documentation for #repod
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/146
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/145I wish #ruff was more compatible with #Python 3.10. Using a lot of match-case statements makes it explode sadly. Was a bit looking forward replacing #flake8, #isort, #pycodestyle and #pydocstyle with it.
I hope it improves in the future. It looks really promising (and fast!). -
Time for a bit of #cleanup and #documentation for #repod
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/146
https://gitlab.archlinux.org/archlinux/repod/-/merge_requests/145I wish #ruff was more compatible with #Python 3.10. Using a lot of match-case statements makes it explode sadly. Was a bit looking forward replacing #flake8, #isort, #pycodestyle and #pydocstyle with it.
I hope it improves in the future. It looks really promising (and fast!).