Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
prospector
Inspects Python source files and provides information about type and location of classes, methods etc
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I just migrated some of my projects over to using ruff, and I am EXTREMELY impressed. It is quite literally 100 times faster than my previous linting configuration, all while being more organized and powerful. It's mind boggling fast. It has all of the plugins builtin that I was previously using with tools like flake8. It hooks into `pre-commit` and replaces many plugins I had before like:
By the way, if you want to checkout my python template, it has my preferred ruff configuration:https://github.com/BrianPugh/python-template
The whole point of Black is that it's opinionated and that it knows better than you. I can always recommend you read the single quotes incident on GitHub to gain more insight about what Black really is: https://github.com/psf/black/issues/118
- add the [prabirshrestha/vim-lsp](https://github.com/prabirshrestha/vim-lsp) plugin and config to your `.vimrc` (note: `pylsp` is *not* necessary).
Just before discovering ruff, I was already migrating to PyCQA/prospector to simplify my configs...
In the same vein as LSP/pre-commit/Ruff/Black, I found the treefmt (rust) project very promising.
flake8-bandit uses bandit behind the scenes: https://github.com/tylerwince/flake8-bandit/blob/main/flake8_bandit.py ruff doesn't and implements the rules directly
Related posts
- Makefile for your Django project
- Automatically find and remove unused import statements in your project.
- One secret tip for first-time OSS contributors. Shh! 🤫 don't tell anyone else
- Automated Testing in Python with pytest, tox, and GitHub Actions
- https://np.reddit.com/r/Slovakia/comments/pmoxmf/počet_úmrtí_vs_vek/hcmc1o3/