-
https://docs.astral.sh/ruff/faq/#which-tools-does-ruff-replace
Could reduce the number of linting tools and speed up linting.
-
**Suggestions**
- [ ] Wait on #22 (to avoid merge conflicts)
- [x] ~~Add [pre-commit.ci](https://pre-commit.ci/) to repo~~ Pre-commit is already in the `push.yml` GHA workflow
- **Pros:** Pre c…
-
### Python Version
3.11.10
### Django Version
4.2.15
### Package Version
1.22.1
### Description
This is a follow up issue from https://github.com/adamchainz/django-upgrade/issues/…
-
### Describe the bug
pre-commit is failing with the following error:
```
(.venv) PS C:\GitHub\toga> pre-commit run
[INFO] Installing environment for https://github.com/asottile/pyupgrade.
[…
-
- [ ] use ruff instead of the various other tools #99
- [x] update minimum python requirement #97
- [ ] run pyupgrade #99
- [ ] setup zenodo integration
- [ ] add zenodo link
-
A suggestion: why not replacing `flake8` and others pre-commit hooks (like `isort`, `pyupgrade`) with Ruff, which can do almost everything? Including a slightly better formatting than Black.
Resour…
-
Make use of https://github.com/asottile/pyupgrade to further improve code, for example by converting `"{}".format(var)` strings to `f{var}` strings. This particular example was determined to be out of…
-
I've been trying to prepare PR to drop python assert pieces == [
['import math'],
['def foo(x=1, y=2):'],
[' """',
' a docstring',
…
-
I'm using this pre-commit config:
```
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
hooks:
- id: nbqa-pyupgrade
args: ["--py310-plus"]
```
and get a failed hook…
-
DataLad has been under development for a long time, and its codebase retains some uses of Python that are now obsolete, such as inheriting from `object` and `%`-formatting strings. These can be updat…