Skip to content

Commit

Permalink
Merge pull request #10 from AlessandroMiola/update_ruff_example
Browse files Browse the repository at this point in the history
docs: update Ruff example
  • Loading branch information
JeyDi authored Jan 29, 2024
2 parents 8ee0b17 + bd7a190 commit b6fe5f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/learning/better_code/ruff/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def sum_even_numbers(numbers: List[int]) -> int:
#### Ignorare errori nel file di configurazione

```ini
[lint]
# Enable flake8-bugbear (`B`) rules.
select = ["E", "F", "B"]

Expand All @@ -110,7 +111,7 @@ ignore = ["E501"]
unfixable = ["B"]

# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[per-file-ignores]
[lint.per-file-ignores]
"__init__.py" = ["E402"]
"path/to/file.py" = ["E402"]
```
Expand Down

0 comments on commit b6fe5f5

Please sign in to comment.