-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Markdown documentation for existing lint rules #2646
Comments
That's very nice! |
We could link it once -- I don't feel strongly! |
(Making a concerted effort to add these for all new rules.) |
Hi, I'm looking to do my part in contributing some docs~ Quick question: I noticed that in #2796 for example, there is a change to |
Thanks! Everything is generated from the rustdoc in the macro, so no need to touch any Markdown. (We actually don’t even check in the generated Markdown anymore, so it won’t appear as part of any PRs — only need to write the rustdoc part, and the rest is taken care of for you when we generate the docs :)) |
|
👍 I'd prefer not to copy over their documentation though, would prefer to write our own. But we can look to theirs for guidance. |
Changes: - Fixes typo and repeated phrase in `DTZ002` - Adds docs for `DTZ003` - Adds docs for `DTZ004` - Adds example for <=Python3.10 in `DTZ001` Related to: astral-sh#2646
|
It looks like we're down to 31 rules that lack documentation:
|
`IOError` is special, it is not actually a lint but an error before linting. I'm not entirely sure how to document it since it does not match the general lint rule pattern (`Checks that the file can be read in its entirety.` is imho worse). I added the in my experience two most common reasons for io errors on unix systems and linked two tutorials on how to fix them. See #2646 --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
## Summary Add documentation to `duplicate-union-member` (`PYI016`) rule. Related to #2646. ## Test Plan `python scripts/check_docs_formatted.py`
## Summary Add documentation to `pass-statement-stub-body` (`PYI009`) rule. Related to #2646. ## Test Plan `python scripts/check_docs_formatted.py`
## Summary Add documentation to `non-empty-stub-body` (`PYI010`) rule. Related to #2646. ## Test Plan `python scripts/check_docs_formatted.py`
If we write documentation on the
#[violation]
macro:This explanation shows up with
ruff rule B017
, and in the docs:We'll track progress here:
airflow
eradicate
flake8-2020
flake8-annotations
flake8-async
flake8-bandit
flake8-blind-except
flake8-boolean-trap
flake8-bugbear
flake8-builtins
flake8-commas
flake8-comprehensions
flake8-copyright
flake8-datetimez
flake8-debugger
flake8-django
flake8-errmsg
flake8-executable
flake8-fixme
flake8-future-annotations
flake8-gettext
flake8-implicit-str-concat
flake8-import-conventions
flake8-logging-format
flake8-no-pep420
flake8-pie
flake8-print
flake8-pyi
flake8-pytest-style
flake8-quotes
flake8-raise
flake8-return
flake8-self
flake8-simplify
flake8-slots
flake8-tidy-imports
flake8-todos
flake8-type-checking
flake8-unused-arguments
flake8-use-pathlib
flynt
isort
mccabe
numpy
pandas-vet
pep8-naming
perflint
pycodestyle
pydocstyle
pyflakes
pygrep-hooks
pylint
pyupgrade
ruff
tryceratops
The text was updated successfully, but these errors were encountered: