ruff/crates
Charlie Marsh 6cc04d64e4
[flake8-django] Skip duplicate violations in DJ012 (#5469)
## Summary

This PR reduces the noise from `DJ012` by emitting a single violation
when you have multiple consecutive violations of the same "type".

For example, given:

```py
class MultipleConsecutiveFields(models.Model):
    """Model that contains multiple out-of-order field definitions in a row."""


    class Meta:
        verbose_name = "test"

    first_name = models.CharField(max_length=32)
    last_name = models.CharField(max_length=32)
```

It's convenient to only error on `first_name`, and not `last_name`,
since we're really flagging that the _section_ is out-of-order.

Closes #5465.
2023-07-02 21:09:49 -04:00
..
flake8_to_ruff Bump version to 0.0.275 (#5276) 2023-06-21 21:53:37 -04:00
ruff [flake8-django] Skip duplicate violations in DJ012 (#5469) 2023-07-02 21:09:49 -04:00
ruff_benchmark Create PyFormatOptions 2023-06-26 14:02:17 +02:00
ruff_cache Only use a single cache file per Python package (#5117) 2023-06-19 17:46:13 +02:00
ruff_cli Make standard input detection robust to invalid arguments (#5393) 2023-06-28 14:52:23 +00:00
ruff_dev Use rayon to parallelize the stability check 2023-06-30 10:05:25 +02:00
ruff_diagnostics Use consistent Cargo.toml metadata in all crates (#5015) 2023-06-12 00:02:40 +00:00
ruff_formatter Show BestFitting mode if it isn't FirstLine (#5452) 2023-06-30 09:49:00 +00:00
ruff_index Run rustfmt on nightly to clean up erroneous comments (#5106) 2023-06-15 00:19:05 +00:00
ruff_macros Avoid including nursery rules in linter-level selectors (#5268) 2023-06-21 20:11:40 +00:00
ruff_python_ast Remove prelude from ruff_python_ast (#5369) 2023-06-26 11:43:49 -04:00
ruff_python_formatter Normalize '\r' in string literals to '\n' 2023-06-30 10:13:23 +02:00
ruff_python_resolver Remove an unsafe access in the resolver (#5428) 2023-06-28 19:08:10 +00:00
ruff_python_semantic Run shadowed-variable analyses in deferred handlers (#5181) 2023-06-29 00:08:18 +00:00
ruff_python_stdlib Rewrite a variety of .contains() calls as matches! statements (#5432) 2023-06-28 22:42:27 -04:00
ruff_python_whitespace Use consistent Cargo.toml metadata in all crates (#5015) 2023-06-12 00:02:40 +00:00
ruff_rustpython Use consistent Cargo.toml metadata in all crates (#5015) 2023-06-12 00:02:40 +00:00
ruff_textwrap Use consistent Cargo.toml metadata in all crates (#5015) 2023-06-12 00:02:40 +00:00
ruff_wasm Fix autofix capabilities in playground (#5375) 2023-06-26 16:40:28 +00:00