Skip to content
代码片段 群组 项目
提交 525a878a 编辑于 作者: Christian Clauss's avatar Christian Clauss
浏览文件

Replace flake8 with ruff

[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) and can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins), [isort](https://pypi.org/project/isort/), [pydocstyle](https://pypi.org/project/pydocstyle/), [yesqa](https://github.com/asottile/yesqa), [eradicate](https://pypi.org/project/eradicate/), [pyupgrade](https://pypi.org/project/pyupgrade/), and [autoflake](https://pypi.org/project/autoflake/), all while executing (in Rust) tens or hundreds of times faster than any individual tool.

We use `ruff --format=gitlab` to rapidly provide intuitive feedback to contributors.
上级 08fc8d8e
No related branches found
No related tags found
无相关合并请求
...@@ -331,8 +331,8 @@ before_script: ...@@ -331,8 +331,8 @@ before_script:
test: test:
script: script:
- python setup.py test - python setup.py test
- pip install flake8 - pip install ruff
- flake8 . - ruff --format=gitlab .
``` ```
### Cache Ruby dependencies ### Cache Ruby dependencies
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册