reorder-python-imports
black
reorder-python-imports | black | |
---|---|---|
2 | 331 | |
737 | 38,732 | |
- | 1.2% | |
7.1 | 9.1 | |
about 2 months ago | 4 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.
reorder-python-imports
-
Boring Python: Code Quality
Two developers on the same python project should also use the same version... with poetry it is straightforward to keep track of dev dependencies. Reorder python imports is an alternative for isort: https://github.com/asottile/reorder_python_imports
- Should I follow the warnings in Pycharm? Does anyone do this?
black
- Black – The uncompromising Python code formatter
-
Setting Up a Comprehensive Python Build Validation Pipeline in Azure DevOps
repos: - repo: https://github.com/psf/black rev: 22.3.0 hooks: - id: black args: [--line-length=79] - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8
- Open source development
- GitHub Is Down?
- Black: The uncompromising Python code formatter
-
Code Reviews Do Find Bugs
IME even better than linters is something like `go fmt` (I work mainly in Python and use https://github.com/psf/black). Rather than forcing you to manually jimmy the code to satisfy the robot, just let the robot make it look the way it wants.
-
Python with Braces
Never heard of it so looked it up:
https://github.com/psf/black
> Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.
-
Setting up `pre-commit` in a Django project
# .pre-commit-config.yaml (28.06.2024) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black rev: 24.4.2 hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 7.1.0 hooks: - id: flake8 - repo: local hooks: - id: django-check name: Run Django Check entry: python manage.py check language: system pass_filenames: false types: [python]
-
10 Hidden AI Tools Every Developer Should Know About
Black
-
How to setup Black and pre-commit in python for auto text-formatting on commit
$ git commit -m "add pre-commit configuration" [INFO] Initializing environment for https://github.com/psf/black. [INFO] Installing environment for https://github.com/psf/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... black................................................(no files to check)Skipped [main 6e21eab] add pre-commit configuration 1 file changed, 7 insertions(+)
What are some alternatives?
mirrors-mypy - Mirror of mypy for pre-commit
autopep8 - A tool that automatically formats Python code to conform to the PEP 8 style guide.
cookiecutter-hypermodern-python - Hypermodern Python Cookiecutter
prettier - Prettier is an opinionated code formatter.
mirrors-clang-format - mirror of https://github.com/ssciwr/clang-format-wheel for pre-commit
yapf - A formatter for Python files
ruff - An extremely fast Python linter and code formatter, written in Rust.
Pylint - It's not just a linter that annoys you!
flake8
pyenv - Simple Python version management
isort - A Python utility / library to sort imports.