Maksudul Haque
84ef7a0171
[`isort`] Add `classes` Config Option ( #1849 )
...
ref https://github.com/charliermarsh/ruff/issues/1819
2023-01-13 12:13:01 -05:00
Nicola Soranzo
66b1d09362
Clarify that some flake8-bugbear opinionated rules are already implemented ( #1847 )
...
E.g. B904 and B905.
2023-01-13 11:49:05 -05:00
max0x53
b47e8e6770
Implement `PLR2004` (`MagicValueComparison`) ( #1828 )
...
This PR adds [Pylint
`R2004`](https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/magic-value-comparison.html#magic-value-comparison-r2004 )
Feel free to suggest changes and additions, I have tried to maintain
parity with the Pylint implementation
[`magic_value.py`](https://github.com/PyCQA/pylint/blob/main/pylint/extensions/magic_value.py )
See #970
2023-01-12 19:44:18 -05:00
Jan Katins
ef17c82998
Document the way extend-ignore/select are applied ( #1839 )
...
Closes: https://github.com/charliermarsh/ruff/issues/1838
2023-01-12 19:44:03 -05:00
Charlie Marsh
9aeb5df5fe
Bump version to 0.0.220
2023-01-12 17:57:04 -05:00
Ash Berlin-Taylor
bf5c048502
Airflow is now using ruff ( #1833 )
...
😀
2023-01-12 16:50:01 -05:00
Charlie Marsh
3110d342c7
Implement isort's `reverse_relative` setting ( #1826 )
...
This PR implements `reverse-relative`, from isort, but renames it to
`relative-imports-order` with the respected value `closest-to-furthest`
and `furthest-to-closest`, and the latter being the default.
Closes #1813 .
2023-01-12 15:48:40 -05:00
nefrob
39aae28eb4
📝 Update readme example for adding isort required imports ( #1824 )
...
Fixes use of isort name to the ruff name.
2023-01-12 13:18:06 -05:00
messense
c6320b29e4
Implement autofix for flake8-quotes ( #1810 )
...
Resolves #1789
2023-01-12 12:42:28 -05:00
Maksudul Haque
1a90408e8c
[`flake8-bandit`] Add Rule for `S701` (jinja2 autoescape false) ( #1815 )
...
ref: https://github.com/charliermarsh/ruff/issues/1646
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-12 11:59:20 -05:00
Jeroen Van Goey
07134c50c8
Add usage of ruff in pandas to README ( #1811 )
...
pandas now uses ruff for linting, see
https://github.com/pandas-dev/pandas/pull/50160
2023-01-12 10:55:21 -05:00
Charlie Marsh
d8162ce79d
Bump version to 0.0.219
2023-01-11 23:46:01 -05:00
Charlie Marsh
e11ef54bda
Improve globset documentation and help message ( #1808 )
...
Closes #1545 .
2023-01-11 23:41:56 -05:00
Charlie Marsh
f450e2e79d
Implement doc line length enforcement ( #1804 )
...
This PR implements `W505` (`DocLineTooLong`), which is similar to `E501`
(`LineTooLong`) but confined to doc lines.
I based the "doc line" definition on pycodestyle, which defines a doc
line as a standalone comment or string statement. Our definition is a
bit more liberal, since we consider any string statement a doc line
(even if it's part of a multi-line statement) -- but that seems fine to
me.
Note that, unusually, this rule requires custom extraction from both the
token stream (to find standalone comments) and the AST (to find string
statements).
Closes #1784 .
2023-01-11 22:32:14 -05:00
Chammika Mannakkara
4523885268
flake8_simplify : SIM401 ( #1778 )
...
Ref #998
- Implements SIM401 with fix
- Added tests
Notes:
- only recognize simple ExprKind::Name variables in expr patterns for
now
- bug-fix from reference implementation: check 3-conditions (dict-key,
target-variable, dict-name) to be equal, `flake8_simplify` only test
first two (only first in second pattern)
2023-01-11 19:51:37 -05:00
Maksudul Haque
de81b0cd38
[`flake8-simplify`] Add Rule for `SIM115` (Use context handler for opening files) ( #1782 )
...
ref: https://github.com/charliermarsh/ruff/issues/998
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-11 19:28:05 -05:00
Grzegorz Bokota
fb2382fbc3
Update readme to reflect #1763 ( #1780 )
...
When checking changes in the 0.0.218 release I noticed that auto fixing
PT004 and PT005 was disabled but this change was not reflected in
README. So I create this small PR to do this.
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-11 18:37:41 -05:00
Charlie Marsh
a3fcc3b28d
Disable update check by default ( #1786 )
...
This has received enough criticism that I'm comfortable making it
opt-in.
2023-01-11 13:47:40 -05:00
Charlie Marsh
cfbd068dd5
Bump version to 0.0.218
2023-01-10 21:28:23 -05:00
Colin Delahunty
c016c41c71
Pyupgrade: Format specifiers ( #1594 )
...
A part of #827 . Posting this for visibility. Still has some work to do
to be done.
Things that still need done before this is ready:
- [x] Does not work when the item is being assigned to a variable
- [x] Does not work if being used in a function call
- [x] Fix incorrectly removed calls in the function
- [x] Has not been tested with pyupgrade negative test cases
Tests from pyupgrade can be seen here:
https://github.com/asottile/pyupgrade/blob/main/tests/features/format_literals_test.py
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-10 20:21:04 -05:00
Charlie Marsh
f1a5e53f06
Enable isort-style `required-imports` enforcement ( #1762 )
...
In isort, this is called `add-imports`, but I prefer the declarative
name.
The idea is that by adding the following to your `pyproject.toml`, you
can ensure that the import is included in all files:
```toml
[tool.ruff.isort]
required-imports = ["from __future__ import annotations"]
```
I mostly reverse-engineered isort's logic for making decisions, though I
made some slight tweaks that I think are preferable. A few comments:
- Like isort, we don't enforce this on empty files (like empty
`__init__.py`).
- Like isort, we require that the import is at the top-level.
- isort will skip any docstrings, and any comments on the first three
lines (I think, based on testing). Ruff places the import after the last
docstring or comment in the file preamble (that is: after the last
docstring or comment that comes before the _first_ non-docstring and
non-comment).
Resolves #1700 .
2023-01-10 18:12:57 -05:00
Maksudul Haque
b8e3f0bc13
[`flake8-bandit`] Add Rule for `S508` (snmp insecure version) & `S509` (snmp weak cryptography) ( #1771 )
...
ref: https://github.com/charliermarsh/ruff/issues/1646
Co-authored-by: messense <messense@icloud.com>
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-10 13:13:54 -05:00
Charlie Marsh
643cedb200
Move CONTRIBUTING.md to top-level ( #1768 )
2023-01-10 07:38:12 -05:00
messense
9384a081f9
Implement flake8-simplify SIM112 ( #1764 )
...
Ref #998
2023-01-10 07:24:01 -05:00
Charlie Marsh
edab268d50
Bump version to 0.0.217
2023-01-09 23:26:22 -05:00
Charlie Marsh
e4fad70a57
Update documentation to match latest terminology ( #1760 )
...
Closes #1759 .
2023-01-09 21:10:47 -05:00
Charlie Marsh
9532f342a6
Enable project-specific typing module re-exports ( #1754 )
...
Resolves #1744 .
2023-01-09 18:17:50 -05:00
Charlie Marsh
2729f3d207
Add support for defining extra builtins ( #1747 )
...
Resolves #1745 .
2023-01-09 12:24:28 -05:00
Charlie Marsh
59155ce9f6
Rename `checks` and `plugins` to `rules` ( #1739 )
2023-01-09 01:39:51 -05:00
Charlie Marsh
caf6c65de7
Bump version to 0.0.216
2023-01-09 01:14:28 -05:00
Matt Oberle
147d594b38
Add isort.force-sort-within-sections setting ( #1635 )
...
This commit is a first attempt at addressing issue #1003 .
The default `isort` behavior is `force-sort-within-sections = false`,
which places `from X import Y` statements after `import X` statements.
When `force-sort-within-sections = true` all imports are sorted by
module name.
When module names are equivalent, the `import` statement comes before
the `from` statement.
2023-01-09 01:06:48 -05:00
Harutaka Kawamura
fe4eb13601
Autofix PT004, PT005, PT024, and PT025 ( #1740 )
2023-01-08 22:41:00 -05:00
Charlie Marsh
09dc3c7225
Rename `Check` to `Diagnostic` ( #1725 )
...
Along with:
- `CheckKind` -> `DiagnosticKind`
- `CheckCode` -> `RuleCode`
- `CheckCodePrefix` -> `RuleCodePrefix`
2023-01-08 17:46:20 -05:00
Charlie Marsh
0152814a00
Bump version to 0.0.215
2023-01-07 22:17:29 -05:00
Charlie Marsh
8b01b53d89
Move RUFF_CACHE_DIR to Clap's env support ( #1733 )
2023-01-07 22:01:20 -05:00
messense
f9a5867d3e
Add `RUFF_FORMAT` environment variable support ( #1731 )
...
Resolves #1716
2023-01-07 21:54:19 -05:00
Charlie Marsh
7d24146df7
Implement `--isolated` CLI flag ( #1727 )
...
Closes #1724 .
2023-01-07 18:43:58 -05:00
Charlie Marsh
4de6c26ff9
Automatically remove duplicate dictionary keys ( #1710 )
...
For now, to be safe, we're only removing keys with duplicate _values_.
See: #1647 .
2023-01-07 16:16:42 -05:00
Charlie Marsh
edf46c06d0
Bump version to 0.0.214
2023-01-07 15:34:45 -05:00
Chammika Mannakkara
9cfce61f36
flake8_simplify : SIM210, SIM211, SIM212 ( #1717 )
2023-01-07 15:32:34 -05:00
Harutaka Kawamura
07f72990a9
Implement autofix for PT009 ( #1713 )
2023-01-07 12:28:25 -05:00
messense
402feffe85
Implement flake8-simplify SIM103 ( #1712 )
...
Ref #998
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-07 07:33:24 -05:00
Charlie Marsh
f1c3ebfe0f
Bump version to 0.0.213
2023-01-07 00:30:56 -05:00
Harutaka Kawamura
8c836aeecf
Add more backticks to flake8-pytest-style error messages ( #1707 )
2023-01-06 22:55:24 -05:00
Charlie Marsh
0527fb9335
Automatically remove unused variables ( #1683 )
...
Closes #1460 .
2023-01-06 22:06:04 -05:00
Charlie Marsh
12d2526edb
Require explicit opt-in for GitHub and Gitlab formats ( #1697 )
2023-01-06 15:57:56 -05:00
Maksudul Haque
9409b49ea2
[`flake8-bandit`] Add Rule for `S501` (request call with `verify=False`) ( #1695 )
...
ref: https://github.com/charliermarsh/ruff/issues/1646
2023-01-06 11:44:19 -05:00
Chammika Mannakkara
1392170dbf
Simplify SIM201, SIM202, SIM208 ( #1666 )
...
Flake8 simplify #998
SIM201, SIM202 and SIM208 is done here with fixes.
Note: SIM203 == E713
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-06 10:47:48 -05:00
messense
0a940b3cb4
Implement flake8-simplify SIM109 ( #1687 )
...
Ref #998
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-06 10:29:49 -05:00
Maksudul Haque
6aba43a9b0
[`flake8-bandit`] Add Rule for `S113` (requests call without timeout) ( #1692 )
...
ref: https://github.com/charliermarsh/ruff/issues/1646
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-06 10:26:08 -05:00
messense
76a9dc61f0
Implement flake8-simplify SIM108 ( #1684 )
...
Ref #998
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-06 08:28:51 -05:00
Maksudul Haque
16d7e13c72
Update `CONTRIBUTING.md` location on `README.md` ( #1688 )
2023-01-06 08:05:24 -05:00
Charlie Marsh
cecd4b166c
Don't mark D205 as fixable in more-lines case ( #1682 )
...
Closes #1672 .
2023-01-05 23:20:14 -05:00
Charlie Marsh
4ddcdd02d6
Tweak badge logo ( #1681 )
2023-01-05 23:07:21 -05:00
Charlie Marsh
ee4cae97d5
Bump version to 0.0.212
2023-01-05 21:25:42 -05:00
Charlie Marsh
75bb6ad456
Implement duplicate isinstance detection (SIM101) ( #1673 )
...
See: #998 .
2023-01-05 20:21:40 -05:00
Diego Palacios
e6611c4830
Fix flake8-import-conventions configuration examples ( #1660 )
2023-01-05 13:37:25 -05:00
Maksudul Haque
2d23b1ae69
[`flake8-bandit`] Add Rule for `S506` (unsafe use of yaml load) ( #1664 )
...
See: https://github.com/charliermarsh/ruff/issues/1646 .
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-05 13:35:01 -05:00
Maksudul Haque
9f8ef1737e
[`flake8-bandit`] Add Rule for `S324` (Insecure hash functions in `hashlib`) ( #1661 )
...
ref: https://github.com/charliermarsh/ruff/issues/1646
2023-01-05 11:45:47 -05:00
Martin Fischer
2045b739a9
Stop highlighting --help output in README as shell ( #1655 )
...
This PR is meant to address the following obviously unintended GitHub
rendering:

2023-01-05 09:46:49 -05:00
Martin Fischer
53e3dd8548
Add ignore-overlong-task-comments setting
...
Imagine a .py file containing the following comment:
# TODO: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
# do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Since `git grep` only matches individual lines `git grep TODO` would
only output the first line of the comment, cutting off potentially
important information. (git grep currently doesn't support multiline
grepping). Projects using such a workflow therefore probably format
the comment in a single line instead:
# TODO: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
This commit introduces a setting to accomdate this workflow by making
the line-length checks (`E501`) optionally ignore overlong lines
if they start with a recognized task tag.
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-04 23:54:50 -05:00
Martin Fischer
78c9056173
Add pycodestyle::settings
...
This step is split up into a separate commit so
that the following commit has a cleaner diff.
2023-01-04 23:54:50 -05:00
Martin Fischer
8d56e412ef
Add task-tags setting
...
Programmers often leave comments to themselves and others such as:
# TODO: Use a faster algorithm?
The keywords used to prefix such comments are just a convention and vary
from project to project. Other common keywords include FIXME and HACK.
The keywords in use for the codebase are of interest to ruff because
ruff does also lint comments. For example the ERA lint detects
commented-out code but ignores comments starting with such a keyword.
Previously the ERA lint simply hardcoded the regular expression
TODO|FIXME|XXX to achieve that. This commit introduces a new `task-tags`
setting to make this configurable (and to allow other comment lints to
recognize the same set of keywords).
The term "task tags" has probably been popularized by the Eclipse
IDE.[1] For Python there has been the proposal PEP 350[2], which
referred to such keywords as "codetags". That proposal however has been
rejected. We are choosing the term "task tags" over "code tags" because
the former is more descriptive: a task tag describes a task.
While according to the PEP 350 such keywords are also sometimes used for
non-tasks e.g. NOBUG to describe a well-known problem that will never be
addressed due to design problems or domain limitations, such keywords
are so rare that we are neglecting them here in favor of more
descriptive terminology. The vast majority of such keywords does
describe tasks, so naming the setting "task-tags" is apt.
[1]: https://www.eclipse.org/pdt/help/html/task_tags.htm
[2]: https://peps.python.org/pep-0350/
Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2023-01-04 23:54:50 -05:00
Charlie Marsh
3400be18a6
Revert "Add task-tags & ignore-overlong-task-comments settings ( #1550 )"
...
This reverts commit ca48492137 .
2023-01-04 23:54:50 -05:00
Charlie Marsh
7b59cd2d32
Bump version to 0.0.211
2023-01-04 23:13:04 -05:00
Charlie Marsh
b8ed4d402a
Implement `SIM110` and `SIM111` (conversion to `any` and `all`) ( #1653 )
2023-01-04 23:08:12 -05:00
messense
46dcf3c4c0
Implement flake8-simplify SIM107 ( #1650 )
2023-01-04 23:02:25 -05:00
Charlie Marsh
fb8024a6ac
Implement nested with detection (SIM117) ( #1651 )
2023-01-04 21:22:25 -05:00
Edgar R. M
2f71bdfbfc
Implement flake8-bandit rule `S108` ( #1644 )
2023-01-04 21:11:13 -05:00
Charlie Marsh
30d6688c26
Implement nested-if detection ( #1649 )
2023-01-04 20:55:01 -05:00
Charlie Marsh
7339d7eccf
Implement builtin import removal ( #1645 )
2023-01-04 19:10:16 -05:00
Charlie Marsh
980d10b952
Add Ruff badge to README ( #1642 )
2023-01-04 17:27:01 -05:00
Martin Fischer
ca48492137
Add task-tags & ignore-overlong-task-comments settings ( #1550 )
2023-01-04 17:10:21 -05:00
Charlie Marsh
7c23701b62
Note a few more incompatibilities ( #1639 )
2023-01-04 16:05:15 -05:00
Charlie Marsh
8da2c4815a
Tweak Yoda condition message ( #1638 )
2023-01-04 15:58:01 -05:00
Edgar R. M
1817f8752b
Implement flake8-bandit rule `S103` ( #1636 )
2023-01-04 15:47:38 -05:00
Colin Delahunty
8b8e6e44ea
Adding my company to the "used in" category of the Readme. ( #1631 )
2023-01-04 12:31:18 -05:00
messense
0df28bdd4e
Implement flake8-simplify SIM105 rule ( #1621 )
2023-01-04 08:10:59 -05:00
Charlie Marsh
8b07f9517a
Implement `SIM220` and `SIM221` ( #1630 )
2023-01-04 08:07:00 -05:00
Charlie Marsh
20930b3675
Add some more users to the README ( #1623 )
2023-01-03 23:06:08 -05:00
Colin Delahunty
fb1a638a96
Implement `yield`-to-`yield from` conversion ( #1544 )
2023-01-03 22:56:52 -05:00
Charlie Marsh
aacfc9ee0b
Bump version to 0.0.210
2023-01-03 21:46:08 -05:00
Charlie Marsh
cc116b0192
Treat convention as setting ignore, rather than select ( #1611 )
2023-01-03 21:27:53 -05:00
Matt Oberle
03275c9c98
Add isort.order-by-type boolean setting ( #1607 )
2023-01-03 18:07:44 -05:00
Harutaka Kawamura
8d99e317b8
Implement autofix for `PT022` ( #1604 )
2023-01-03 13:36:28 -05:00
Charlie Marsh
e9a236f740
Bump version to 0.0.209
2023-01-03 08:27:28 -05:00
Pedram Navid
da5a25b421
Add autofix for SIM300 ( #1588 )
2023-01-03 07:19:04 -05:00
jvstme
d1389894a4
Fix several typos in README ( #1590 )
2023-01-03 07:06:43 -05:00
Charlie Marsh
8b277138de
Bump version to 0.0.208
2023-01-02 23:19:03 -05:00
Charlie Marsh
e0fe34c523
Implement and-false and or-true rules ( #1586 )
2023-01-02 23:10:42 -05:00
Charlie Marsh
995fee5ddd
Increment flake8-pie implementation count
2023-01-02 22:47:05 -05:00
Harutaka Kawamura
b351221049
Mark `FStringMissingPlaceholders` as fixable ( #1582 )
2023-01-02 22:41:40 -05:00
Charlie Marsh
8aeec35bfb
Implement dupe-class-field-definitions ( #1581 )
2023-01-02 22:26:01 -05:00
Charlie Marsh
93259acb31
Implement unnecessary-pass-statement ( #1580 )
2023-01-02 22:15:24 -05:00
Charlie Marsh
5dd9e99a4b
Add `flake8-pie` plugin with `prefer_list_builtin` ( #1578 )
2023-01-02 21:47:38 -05:00
Charlie Marsh
0c05488740
Automatically set baseline D codes based on convention ( #1574 )
2023-01-02 19:08:56 -05:00
Charlie Marsh
e5a59f41b0
Remove extend- from docstring configuration examples ( #1571 )
2023-01-02 17:53:41 -05:00
Edgar R. M
c4014ef2d3
Implement `flake8-pytest-style` ( #1506 )
2023-01-02 16:34:17 -05:00
Charlie Marsh
f74050e5b1
Bump version to 0.0.207
2023-01-02 14:39:32 -05:00
Víctor
06321fd240
Add usage clarification to README ( #1557 )
2023-01-02 13:40:16 -05:00
Pedram Navid
07e47bef4b
Add flake8-simplify SIM300 check for Yoda Conditions ( #1539 )
2023-01-01 18:37:40 -05:00
Anders Kaseorg
86b61806a5
Correct UP027 message to “generator expression” ( #1540 )
2023-01-01 18:30:58 -05:00
Colin Delahunty
65c34c56d6
Implement list-to-tuple comprehension unpacking ( #1534 )
2023-01-01 16:53:26 -05:00
Charlie Marsh
2315db7d13
Bump version to 0.0.206
2023-01-01 16:39:29 -05:00
Charlie Marsh
8fd0d8e9d8
Bump pyupgrade implementation count
2022-12-31 21:25:34 -05:00
Colin Delahunty
70895a8f1e
Pyupgrade: `import mock` to `from unittest import mock` ( #1488 )
2022-12-31 21:25:06 -05:00
Charlie Marsh
92c2981b6d
Add dark mode variant for benchmark image ( #1519 )
2022-12-31 17:47:32 -05:00
Colin Delahunty
4ad8db3d61
Pyupgrade: Turn errors into OSError ( #1434 )
2022-12-31 16:36:05 -05:00
Charlie Marsh
0e8c237167
Bump version to 0.0.205
2022-12-31 13:44:39 -05:00
Charlie Marsh
0c215365ae
Bump version to 0.0.204
2022-12-31 08:20:09 -05:00
Harutaka Kawamura
f7bb5bc858
Remove F831 ( #1495 )
2022-12-30 23:57:51 -05:00
Charlie Marsh
01c74e0629
Add a "fix message" to every autofix-able check ( #1489 )
2022-12-30 23:16:03 -05:00
Charlie Marsh
248447e139
Trim CLI help during generation ( #1492 )
2022-12-30 22:03:58 -05:00
Charlie Marsh
74903f23d6
Bump version to 0.0.203
2022-12-30 15:33:30 -05:00
Charlie Marsh
4c2fbb7ac0
Remove hidden autoformat command ( #1486 )
2022-12-30 15:32:05 -05:00
Reiner Gerecke
c9aa7b9308
Generate the README's --help output automatically via cargo +nightly dev generate-all ( #1483 )
2022-12-30 15:06:32 -05:00
Charlie Marsh
818582fe8a
Bump version to 0.0.202
2022-12-30 08:16:32 -05:00
Martin Fischer
87681697ae
Improve CLI help for `--select` ( #1471 )
2022-12-30 07:16:44 -05:00
Charlie Marsh
4a6e5d1549
Bump version to 0.0.201
2022-12-29 23:01:35 -05:00
Charlie Marsh
b078050732
Implicit flake8-implicit-str-concat ( #1463 )
2022-12-29 23:00:55 -05:00
Martin Fischer
9d34da23bd
Implement TID251 (banning modules & module members) ( #1436 )
2022-12-29 22:11:12 -05:00
Colin Delahunty
f735660801
Removed unicode literals ( #1448 )
2022-12-29 20:11:33 -05:00
Adam Turner
091d36cd30
Add Sphinx to user list ( #1451 )
2022-12-29 18:06:09 -05:00
Mathieu Kniewallner
02f156c6cb
docs(README): add missing `flake8-simplify` ( #1449 )
2022-12-29 17:02:26 -05:00
Charlie Marsh
118a93260a
Bump version to 0.0.200
2022-12-29 13:31:23 -05:00
Charlie Marsh
1c16255884
Include docstrings for settings enum members ( #1446 )
2022-12-29 13:15:44 -05:00
Charlie Marsh
0ba3989b3d
Make update check enablement cofnigurable ( #1445 )
2022-12-29 13:06:22 -05:00
Maksudul Haque
781bbbc286
[pygrep-hooks] Adds Check for Blanket `# noqa` ( #1440 )
2022-12-29 12:43:16 -05:00
Charlie Marsh
acf0b82f19
Re-style the Ruff playground ( #1438 )
2022-12-29 11:47:27 -05:00
Charlie Marsh
057414ddd4
Bump version to 0.0.199
2022-12-28 20:58:43 -05:00
Charlie Marsh
058ee8e6bf
Add a --diff flag to dry-run autofixes ( #1431 )
2022-12-28 19:21:29 -05:00
Colin Delahunty
34842b4c4b
PyUpgrade: Replace pipes with `capture_output=True` ( #1415 )
2022-12-28 16:53:35 -05:00
Colin Delahunty
6131c819ed
Rewrite xml.etree.cElementTree to xml.etree.ElementTree ( #1426 )
2022-12-28 16:30:36 -05:00
Maksudul Haque
8e479628f2
Add Support for GitLab CI Code Quality Report Format ( #1424 )
2022-12-28 10:10:43 -05:00
Charlie Marsh
c679570041
Bump version to 0.0.198
2022-12-27 21:39:53 -05:00
Charlie Marsh
edcb3a7217
Support --select ALL to enable all error codes ( #1418 )
2022-12-27 21:38:26 -05:00
Charlie Marsh
6e43dc7270
Add nbQA support to the docs ( #1417 )
2022-12-27 21:24:07 -05:00
Charlie Marsh
570d0864f2
Add rule to detect keyword arguments before starred arguments ( #1416 )
2022-12-27 21:17:22 -05:00
Charlie Marsh
043d31dcdf
Bump version to 0.0.197
2022-12-27 17:05:15 -05:00
Charlie Marsh
3e96803033
Bump version to 0.0.196
2022-12-27 12:02:02 -05:00
Colin Delahunty
c59035139c
Pyupgrade: converts `universal_newlines` to `text` in `subprocess.run` ( #1403 )
2022-12-27 12:01:27 -05:00
Charlie Marsh
7632d7eda7
Allow specification of explicit docstring convention ( #1408 )
2022-12-27 11:50:28 -05:00
Reiner Gerecke
534d8d049c
Support isort's force-single-line option ( #1366 )
2022-12-27 08:51:32 -05:00
Reiner Gerecke
e0b39fa63e
Implement pyupgrade check for io.open alias ( #1399 )
2022-12-27 07:47:40 -05:00
Charlie Marsh
320a48977b
Tweak README again
2022-12-26 21:17:18 -05:00
Charlie Marsh
0d05aaeb6e
Add monorepo note
2022-12-26 21:00:14 -05:00
Charlie Marsh
1e4b1533ad
Bump version to 0.0.195
2022-12-26 20:41:39 -05:00
Charlie Marsh
df4f5358f9
Bump pyupgrade implementation count
2022-12-26 19:56:12 -05:00
Colin Delahunty
58c383401c
Replace `typing.Text` with `str` ( #1391 )
2022-12-26 19:55:41 -05:00
Colin Delahunty
debd909b2c
Magic Trailing Commas in isort ( #1363 )
2022-12-26 09:40:02 -05:00
Charlie Marsh
b0f30bef8f
Add support for `ruff.toml` ( #1378 )
2022-12-25 21:55:07 -05:00
Charlie Marsh
4dc45912e8
Run cargo dev commands
2022-12-25 20:12:12 -05:00
Charlie Marsh
5ef8bff341
Bump version to 0.0.194
2022-12-25 19:54:45 -05:00
Charlie Marsh
2ab8f77223
Update command-line help text
2022-12-25 19:54:14 -05:00
Charlie Marsh
8b72f55a09
Add `--required-version` ( #1376 )
2022-12-25 19:53:50 -05:00
Charlie Marsh
d9355c989a
Add a `--fix-only` command-line and `pyproject.toml` option ( #1375 )
2022-12-25 18:49:56 -05:00
Charlie Marsh
cc2110449c
Run cargo dev commands
2022-12-24 15:06:12 -05:00
Charlie Marsh
f6ca49e05f
Bump version to 0.0.193
2022-12-24 14:56:26 -05:00
Edgar R. M
4888afd423
Generate JSON schema for Ruff options ( #1329 )
2022-12-24 14:10:22 -05:00
Sawbez
0dc523b081
Add autofix for W605 [InvalidEscapeSequence] ( #1361 )
2022-12-24 13:46:28 -05:00
Sawbez
4ded155dc0
Add autofix for W292 [NoNewLineAtEndOfFile] ( #1354 )
2022-12-23 23:14:17 -05:00
Reiner Gerecke
102b049a32
Add cache-dir to command-line and pyproject.toml ( #1351 )
2022-12-23 22:58:29 -05:00
Charlie Marsh
74f49eda64
Bump compatibility to 3.11 ( #1352 )
2022-12-23 12:12:11 -05:00
Reiner Gerecke
9da3e2cca1
Implement "native literals" check from pyupgrade ( #1350 )
2022-12-23 11:40:32 -05:00
Charlie Marsh
bc9ed0a4ef
Tweak LSP docs
2022-12-22 22:16:32 -05:00
Charlie Marsh
20b9b44973
Link to ruff-lsp docs
2022-12-22 21:53:11 -05:00
Charlie Marsh
6e5a553235
Update Neovim instructions
2022-12-22 21:52:30 -05:00
Charlie Marsh
2a08a63f17
Add a link to the PyCharm plugin ( #1345 )
2022-12-22 21:50:24 -05:00
Charlie Marsh
51bda28a7d
Bump version to 0.0.192
2022-12-22 17:31:31 -05:00
Reiner Gerecke
cc26051b7a
Implement "datetime.UTC alias" check from pyupgrade ( #1341 )
2022-12-22 17:21:36 -05:00
Charlie Marsh
970f882b03
Set force-exclude for pre-commit in README ( #1337 )
2022-12-22 10:51:20 -05:00
Charlie Marsh
a4a24a0ef3
Add some more repositories to the user list ( #1328 )
2022-12-21 22:16:47 -05:00
Charlie Marsh
03e4f5be8a
Bump version to 0.0.191
2022-12-21 21:16:21 -05:00
Charlie Marsh
99657b7d92
Implement E401 ("multiple imports on one line") ( #1326 )
2022-12-21 21:15:57 -05:00
Charlie Marsh
ff66d08cef
Run generate-options
2022-12-21 20:58:14 -05:00
Charlie Marsh
bf5fec342c
Support shell expansion in `extend` paths ( #1323 )
2022-12-21 20:46:38 -05:00
Charlie Marsh
20234c6156
Bump version to 0.0.190
2022-12-21 16:01:48 -05:00
Charlie Marsh
ef8fe31c0c
Bump version to 0.0.189
2022-12-20 13:26:17 -05:00
Charlie Marsh
a61126ab23
Run generate-options
2022-12-19 23:19:05 -05:00
Charlie Marsh
4107bc828d
Bump version to 0.0.188
2022-12-19 12:18:06 -05:00
Charlie Marsh
706d28cabc
Rename PDV checks to PD ( #1288 )
2022-12-19 00:20:28 -05:00
Yasu_umi
8a4831dd5b
Implement flake8-datetimez ( #1270 )
2022-12-18 22:06:06 -05:00
Charlie Marsh
b5ab492a70
Bump version to 0.0.187
2022-12-18 20:09:02 -05:00
Charlie Marsh
6cf047976c
Bump pygrep-hooks tally in README
2022-12-18 18:05:32 -05:00
Reiner Gerecke
87465daacc
pygrep-hooks - deprecated use of logging.warn & no blanket type ignore ( #1275 )
2022-12-18 18:04:21 -05:00
Charlie Marsh
1028ed3565
Bump version to 0.0.186
2022-12-18 14:30:30 -05:00
Anders Kaseorg
98897db6ac
Add packaging status badge from repology ( #1276 )
2022-12-18 14:27:29 -05:00
Honkertonken
5ce4262112
Readme : Fix incorrect exmaple. ( #1277 )
2022-12-18 12:04:48 -05:00
Anders Kaseorg
04b1e1de6f
README: Add missing backtick ( #1274 )
2022-12-18 00:29:33 -05:00
Anders Kaseorg
c93c85300f
Repair corrupted PDV007, PDV009 messages ( #1273 )
2022-12-18 00:29:12 -05:00
Charlie Marsh
73ed6f8654
Touch-up README
2022-12-17 21:38:45 -05:00
Charlie Marsh
f366b0147f
Add ruff-lsp to README ( #1272 )
2022-12-17 21:35:44 -05:00
Charlie Marsh
fc88fa35ff
Add instructions for Sublime Text installation ( #1271 )
2022-12-17 16:22:50 -05:00
Charlie Marsh
a2806eb8ef
Bump version to 0.0.185
2022-12-16 23:47:56 -05:00
Charlie Marsh
1e19142d0e
Bump version to 0.0.184
2022-12-16 14:36:25 -05:00
Charlie Marsh
d6e765877e
Enable autofix for __init__ method with missing None-return ( #1265 )
2022-12-16 14:28:56 -05:00
Charlie Marsh
634553f188
Add ignore-variadic-names options to flake8-unused-arguments ( #1261 )
2022-12-16 00:22:38 -05:00
Charlie Marsh
481d668511
Add flake8-errmsg to README
2022-12-15 23:16:38 -05:00
Charlie Marsh
a9f56ee76e
Bump version to 0.0.183
2022-12-15 23:15:12 -05:00
Edgar R. M
8281d414ca
Implement `flake8-errmsg` ( #1258 )
2022-12-15 23:10:59 -05:00
Martin Lehoux
d8b4b92733
Implement U016: Remove six compatibility code ( #1013 )
2022-12-15 14:16:58 -05:00
Edgar R. M
27de342e75
Implement `pandas-vet` ( #1235 )
2022-12-15 14:01:01 -05:00
Charlie Marsh
1ea2e93f8e
Bump version to 0.0.182
2022-12-14 22:57:22 -05:00
Charlie Marsh
549ea2f85f
Ignore any `pyproject.toml` without a `[tool.ruff]` section ( #1243 )
2022-12-14 19:35:52 -05:00
Charlie Marsh
d814ebd21f
Bump version to 0.0.181
2022-12-14 17:35:36 -05:00
Charlie Marsh
3f272b6cf8
Enable opt-out of `.gitignore` checks via `respect-gitignore` flag ( #1242 )
2022-12-14 16:54:23 -05:00
Charlie Marsh
854cd14842
Bump version to 0.0.180
2022-12-14 13:21:10 -05:00
Charlie Marsh
765d21c7b0
Bump version to 0.0.179
2022-12-13 10:17:16 -05:00
Charlie Marsh
a58b9b5063
Upgrade RustPython to support parenthesized context managers ( #1228 )
2022-12-13 10:16:43 -05:00
Charlie Marsh
f3e11a30cb
Bump version to 0.0.178
2022-12-12 22:06:04 -05:00
Charlie Marsh
2f3b5367ff
Add a note on extends to README
2022-12-12 21:36:39 -05:00
Charlie Marsh
92bc417e4e
Add support for glob patterns in `src` ( #1225 )
2022-12-12 21:35:03 -05:00
Charlie Marsh
9853b0728b
Enable configuration files to "extend" other configuration files ( #1219 )
2022-12-12 20:28:22 -05:00
Charlie Marsh
77709dcc41
Remove underscore from extend_exclude
2022-12-12 16:34:16 -05:00
Charlie Marsh
b0cb5fc7ef
Document current behavior around `pyproject.toml` discovery ( #1213 )
2022-12-12 11:49:21 -05:00
Charlie Marsh
19e9eb1af8
Bump version to 0.0.177
2022-12-11 22:38:52 -05:00
Anders Kaseorg
e57044800c
Fix quotes in SIM118 error message ( #1204 )
2022-12-11 22:30:39 -05:00
Charlie Marsh
ae8ff7cb7f
Add notes around python-lsp-ruff ( #1202 )
2022-12-11 17:36:20 -05:00
Charlie Marsh
24179655b8
Fix 'a test' reference
2022-12-11 13:31:14 -05:00
Charlie Marsh
d27b419e68
Run cargo dev generate-options
2022-12-11 10:34:52 -05:00
Charlie Marsh
9fc7a32a24
Sort list in README
2022-12-11 10:25:27 -05:00
Charlie Marsh
9161b866b5
Bump version to 0.0.176
2022-12-11 10:19:50 -05:00
Charlie Marsh
99f077aa4e
Add missing hash in README comment
2022-12-11 10:05:32 -05:00
Reiner Gerecke
7f25d1ec70
Implement SIM118 (key in dict) of flake8-simplify ( #1195 )
2022-12-11 10:05:11 -05:00
Reiner Gerecke
247dcc9f9c
Mark C413 as fixable ( #1191 )
2022-12-11 09:07:51 -05:00
Charlie Marsh
c86e52193c
Bump version to 0.0.175
2022-12-10 21:23:19 -05:00
Reiner Gerecke
06ed125771
Add autofix for F504 and F522 ( #1184 )
2022-12-10 16:33:09 -05:00
Charlie Marsh
6da3de25ba
Add jupyter_server to README ( #1182 )
2022-12-10 12:10:27 -05:00
Charlie Marsh
63b3e00c97
Bump version to 0.0.174
2022-12-10 12:08:48 -05:00
Charlie Marsh
b8bbafd85b
Flag global usages prior to `global` declarations ( #1178 )
2022-12-10 11:19:24 -05:00
Charlie Marsh
2b44941d63
Add pacman instructions to README ( #1175 )
2022-12-10 10:00:01 -05:00
Charlie Marsh
257bd7f1d7
Bump version to 0.0.173
2022-12-09 23:23:12 -05:00
Charlie Marsh
b35a804f9d
Bump version to 0.0.172
2022-12-09 17:47:34 -05:00
Charlie Marsh
e594ed6528
Implement D301 (backslash checks) ( #1169 )
2022-12-09 17:44:18 -05:00
Charlie Marsh
0dacf61153
Implement F842 (UnusedAnnotation) ( #1165 )
2022-12-09 12:42:03 -05:00
Charlie Marsh
2965e2561d
Clarify combination of combine-as-imports and force-wrap-aliases ( #1162 )
2022-12-09 12:20:15 -05:00
Charlie Marsh
a19050b8a4
Update README.md
2022-12-08 23:39:01 -05:00
Charlie Marsh
dfd6225d85
Bump version to 0.0.171
2022-12-08 23:18:48 -05:00
Charlie Marsh
aaeab0ecf1
Implement F811 (`RedefinedWhileUnused`) ( #1137 )
2022-12-08 21:31:08 -05:00
Charlie Marsh
a710e35ebc
Bump version to 0.0.170
2022-12-08 11:36:24 -05:00
Charlie Marsh
e338d9acbe
Remove 'consider' language from check messages ( #1135 )
2022-12-07 20:10:36 -05:00
Charlie Marsh
5c8655f479
Bump ruff_macros to 0.0.169
2022-12-07 19:10:16 -05:00
Charlie Marsh
528416f07a
Rename I252 to TID252; add redirects for all renamed codes ( #1129 )
2022-12-07 15:12:22 -05:00
Charlie Marsh
4405a6a903
Bump version to 0.0.168
2022-12-07 13:18:40 -05:00
Charlie Marsh
bb67fbb73a
Implement unused argument detection (`ARG`) ( #1126 )
...
Detect unused arguments
2022-12-07 12:15:41 -05:00
Charlie Marsh
d698c6123e
Bump version to 0.0.167
2022-12-07 10:37:31 -05:00
Charlie Marsh
9579faffa8
Avoid flagging bare exception issues when exception is re-raised ( #1124 )
2022-12-07 10:37:08 -05:00
Phillip Verheyden
9c6e8c7644
Auto-generate the rules table of contents ( #1121 )
2022-12-07 10:03:42 -05:00
Charlie Marsh
7abecd4f0e
Implement B905 ( #1122 )
2022-12-07 10:01:24 -05:00
Phillip Verheyden
b8ff209af8
Encode prefixes in README headings not just in TOC ( #1109 )
2022-12-07 09:24:49 -05:00