# Ruff Authors - Ruff Configuration - Rules Selection (Highlights)

## Metadata
**Review**:: [readwise.io](https://readwise.io/bookreview/28053617)
**Source**:: #from/readwise #from/reader
**Zettel**:: #zettel/fleeting
**Status**:: #x
**Authors**:: [[Ruff Authors]]
**Full Title**:: Ruff Configuration - Rules Selection
**Category**:: #articles #readwise/articles
**Category Icon**:: 📰
**Document Tags**:: #linter #python
**URL**:: [beta.ruff.rs](https://beta.ruff.rs/docs/configuration/#rule-selection)
**Host**:: [[beta.ruff.rs]]
**Highlighted**:: [[2023-05-22]]
**Created**:: [[2023-05-28]]
## Highlights
- To ignore a violation inline, Ruff uses a `noqa` system similar to [Flake8](https://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html). To ignore an individual violation, add `# noqa: {code}` to the end of the line ([View Highlight](https://read.readwise.io/read/01h11we3vvbjf5sm94j3yv0mg1)) ^534127578
- To ignore a specific rule across an entire file, add `# ruff: noqa: {code}` to any line in the file ([View Highlight](https://read.readwise.io/read/01h11wej386a1kvxzsk8v92yws)) ^534127598
#python
- Note that Ruff will also respect Flake8's `# flake8: noqa` directive, and will treat it as equivalent to `# ruff: noqa`. ([View Highlight](https://read.readwise.io/read/01h11wf3mgmrm69ga2vnc9n80g)) ^534127661