ruff/scripts
Charlie Marsh f6d6200aae
Rework the documentation to incorporate the Ruff formatter (#7732)
## Summary

This PR updates our documentation for the upcoming formatter release.

Broadly, the documentation is now structured as follows:

- Overview
- Tutorial
- Installing Ruff
- The Ruff Linter
    - Overview
    - `ruff check`
    - Rule selection
    - Error suppression
    - Exit codes
- The Ruff Formatter
    - Overview
    - `ruff format`
    - Philosophy
    - Configuration
    - Format suppression
    - Exit codes
    - Black compatibility
        - Known deviations
- Configuring Ruff
    - pyproject.toml
    - File discovery
    - Configuration discovery
    - CLI
    - Shell autocompletion
- Preview
- Rules
- Settings
- Integrations
    - `pre-commit`
    - VS Code
    - LSP
    - PyCharm
    - GitHub Actions
- FAQ
- Contributing

The major changes include:

- Removing the "Usage" section from the docs, and instead folding that
information into "Integrations" and the new Linter and Formatter
sections.
- Breaking up "Configuration" into "Configuring Ruff" (for generic
configuration), and new Linter- and Formatter-specific sections.
- Updating all example configurations to use `[tool.ruff.lint]` and
`[tool.ruff.format]`.

My suggestion is to pull and build the docs locally, and review by
reading them in the browser rather than trying to parse all the code
changes.

Closes https://github.com/astral-sh/ruff/issues/7235.

Closes https://github.com/astral-sh/ruff/issues/7647.
2023-10-20 23:08:26 +00:00
..
benchmarks Release 0.1.1 (#8073) 2023-10-19 20:49:53 +00:00
Dockerfile.ecosystem Remove outdated feature flag from Dockerfile.ecosystem (#4620) 2023-05-24 08:19:08 +00:00
_utils.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
add_plugin.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
add_rule.py Rename `RuleGroup::Unspecified` to `Stable` (#7991) 2023-10-16 14:53:27 -05:00
check_docs_formatted.py [pylint] Implement PLR0916 (`too-many-boolean-expressions`) (#7975) 2023-10-17 04:44:25 +00:00
check_ecosystem.py Add comment to ecoystem check re. ALL rules (#6943) 2023-08-28 11:28:36 -05:00
ecosystem_all_check.py Rename `Autofix` to `Fix` (#7657) 2023-09-28 10:53:05 +00:00
ecosystem_all_check.sh Rename `Autofix` to `Fix` (#7657) 2023-09-28 10:53:05 +00:00
ecosystem_all_check_entrypoint.sh Make ecosystem all check more generic (#4629) 2023-05-24 16:26:23 +02:00
formatter_ecosystem_checks.sh Update and extend formatter ecosystem checks (#7981) 2023-10-16 13:24:42 +02:00
generate_known_standard_library.py Remove HashMap and HashSet for known-standard-library detection (#5345) 2023-06-23 19:59:03 +00:00
generate_mkdocs.py Rework the documentation to incorporate the Ruff formatter (#7732) 2023-10-20 23:08:26 +00:00
pyproject.toml Check for `Any` in other types for `ANN401` (#5601) 2023-07-13 18:19:27 +05:30
transform_readme.py Use `__future__` imports in scripts (#5301) 2023-06-22 11:40:16 -04:00
update_ambiguous_characters.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
update_schemastore.py Use SSH clones in `update_schemastore.py` (#5322) 2023-06-23 09:50:10 -04:00