Python3 代码格式化几个插件,那个用的人多,主流些?谢谢

查看 221|回复 11
qW7bo2FbzbC0   
python way, PEP8
so1n   
我现在都是这样配置
```yaml
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.0
hooks:
- id: mypy
additional_dependencies:
[ types-protobuf>=4.21.0.0]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/myint/autoflake
rev: v2.0.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable', '--ignore-init-module-imports']
```
您需要登录后才可以回帖 登录 | 立即注册

返回顶部