Skip to content

Commit

Permalink
ruff.toml: Update for 0.2.0
Browse files Browse the repository at this point in the history
There is a deprecation warning for top level lint settings:

  warning: The top-level linter settings are deprecated in favour of their
  counterparts in the `lint` section. Please update the following options
  in `ruff.toml`:
    - 'ignore' -> 'lint.ignore'
    - 'select' -> 'lint.select'

Move these under the lint section. Additionally, update the link to the
rules.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Feb 2, 2024
1 parent 767e014 commit 14fa200
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# https://beta.ruff.rs/docs/rules/
target-version = 'py38'

# https://docs.astral.sh/ruff/rules/
[lint]
select = [
'A', # flake8-builtins
'ARG', # flake8-unused-arguments
Expand Down Expand Up @@ -27,4 +30,3 @@ ignore = [
'S603', # subprocess-without-shell-equals-true
'S607', # start-process-with-partial-path
]
target-version = 'py38'

0 comments on commit 14fa200

Please sign in to comment.