-
## What
Replace existing linters with Python [ruff](https://docs.astral.sh/ruff/) linter (and either fix violations or configure for our codebase)
## Why
ruff consolidates multiple linters an…
-
Now we are using ruff, the idea is that we add more rules to ruff linter in separate PRs since there are a lot of fixes to do (maybe create a separate issues for that) . e.g.,
```toml
select = [
…
-
linter: use flake8
library import use isort
formatter use black
pip install flake8 isort black
-
I've had this happen a few times when merging branches and there is a file conflict, I use the merge tool in gitfiend and when I push the changes I get a linter error because the empty line at the end…
-
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…
-
See https://github.com/astral-sh/ruff
Perhaps this linter works faster & picks up more issues. On a first glance, Ruff seems to be well adopted and well maintained.
-
Consider adding pylint and black to our CI. Pylint is slower but more exacting than flake8.
#178 is an example where a more aggressive linter may have found an issue
-
See: https://docs.astral.sh/ruff/rules/#flake8-return-ret
-
People who have a problem Related to ***flake8*** in terms of console or package installation ... etc. You can check my solution for this problem by entering my Repository:
- [Fix-Linter-flake…
-
```
class Product(models.Model):
test = models.CharField(null=True, blank=True, max_length=255)
```
is correct
> DJ001 Avoid using `null=True` on string-based fields such as `CharField`
…