pylama
black
pylama | black | |
---|---|---|
5 | 342 | |
1,053 | 40,481 | |
0.2% | 0.5% | |
0.0 | 8.8 | |
about 1 year ago | 8 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pylama
-
Enhance Your Project Quality with These Top Python Libraries
Pylama is a code audit tool for Python that wraps tools like Pylint, pycodestyle, PyFlakes, McCabe, and others to provide a unified interface.
-
How pythonic is enough pythonic?
Use a code linter. And potentially use black.
-
Newbie here: blank spaces for better code readability?
Use a linter like pylama
-
Advice on training Python best practices
Lint your code. I recommend pylama.
-
Code Quality Tools in Python
Linters analyze code to detect various categories of issues like logistical issue and stylistic issues. Some popular linters are Pylint, pycodestyle, Flake8 and Pylama.
black
-
Don't Know These 6 Tools? No Wonder Your Python Development Is So Slow
👉 https://github.com/psf/black
-
Pyrefly vs. Ty: Comparing Python's Two New Rust-Based Type Checkers
Coming from a Meta background (not speaking on behalf of Meta):
"package/dependency management" - Everything is checked into a monorepo, and built with [Buck2](https://buck2.build/). There's tooling to import/update packages, but no need to reinvent pip or other package managers. Btw, Buck2 is pretty awesome and supports a ton of languages beyond python, but hasn't gotten a ton of traction outside of Meta.
"linting, formatting" - [Black](https://github.com/psf/black) and other public ecosystem tooling is great, no need to develop internally.
"why is type checking the exception" - Don't know about Astral, but for Meta / Google, most everyone else doesn't design for the scale of their monorepos. Meta moved from SVN to Git to Mercurial, then forked Mercurial into [Sapling](https://sapling-scm.com/) because simple operations were too slow for the number of files in their repo, and how frequently they receive diffs.
There are obvious safety benefits to type checking, but with how much Python code Meta has, mypy is not an option - it would take far too much time / memory to provide any value.
- Seokar: Unleashing the Power of Advanced On-Page SEO Analysis in Python
-
Nix-Powered Python Development
These requirements are not too uncommon. I have seen many projects with similar setup, with alternatives such as tox instead of nox, or black and pylint instead of ruff, etc.
-
Nix Flake Templates
Use black and isort for formatting.
-
Ruff and Ready: Linting Before the Party
black as a formatter,
-
Amazing `pre-commit` and How To Use It
repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 # Use the desired revision hooks: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/psf/black rev: 23.1.0 # Use the appropriate version for your project hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8
-
Ruff: Python linter and code formatter written in Rust
> I appreciate that Black annoyed everyone on our team about the same amount but in different ways.
If it did affect people equally, it would be great. Unfortunately, spaces for indentation is an accessibility issue and the Black maintainers are hostile to making this configurable. Normally I am in agreement about minimising configurability, but this isn’t a matter of taste, it is making the Python ecosystem more difficult for some disabled people to participate in.
https://github.com/psf/black/issues/2798
Fortunately, Ruff makes this configurable, so you don’t have to choose between autoformatting and accessibility any more.
-
Just use this Next.js Eslint Configuration
XO. This feels like the Black of Typescript linting. XO has styles for everything and is very opinionated. This can be nice, because it takes a lot of code style decisions off of your plate. But beware it can be cumbersome to implement in the middle of a project because it will require extensive reformatting. In lieu of XO, I found Unicorn opinionated enough and more immediately useful.
-
Enhancing Code Quality: Adding Formatters and Linters to Code-Formatter-Advisor
Black (Python Code Formatter) - Black is a widely used opinionated Python code formatter that helps standardize the look of Python code. Its primary advantage is that it eliminates arguments over style, helping teams stay productive.
What are some alternatives?
Pylint - It's not just a linter that annoys you!
prettier - Prettier is an opinionated code formatter.
Flake8 - flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
yapf - A formatter for Python files
prospector - Inspects Python source files and provides information about type and location of classes, methods etc
autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.