Use alternative TOML format for per-file-ignores in README (#931)

This commit is contained in:
Charlie Marsh 2022-11-27 21:38:43 -05:00 committed by GitHub
parent a4a215e8a3
commit 3f689917cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,9 @@ fix = true
unfixable = ["F401"] unfixable = ["F401"]
# Ignore `E402` (import violations in any `__init__.py` file, and in `path/to/file.py`. # Ignore `E402` (import violations in any `__init__.py` file, and in `path/to/file.py`.
per-file-ignores = {"__init__.py" = ["E402"], "path/to/file.py" = ["E402"]} [tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
"path/to/file.py" = ["E402"]
``` ```
Plugin configurations should be expressed as subsections, e.g.: Plugin configurations should be expressed as subsections, e.g.: