mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-03 23:41:51 +00:00
Configure sorting imports in CI and formatting (#11410)
* Add reformat commit to .git-blame-ignore-revs. * Make ruff also check the import order. * Add ruff check --fix for imports to the nox formatting session.
This commit is contained in:
parent
236b9c0e04
commit
91efa27cb9
3 changed files with 16 additions and 1 deletions
|
|
@ -23,6 +23,12 @@ stable_branches = [ "stable-*" ]
|
|||
code_files = ["."] # consider all Python files in the collection
|
||||
run_isort = false
|
||||
run_black = false
|
||||
run_ruff_autofix = true
|
||||
ruff_autofix_config = "ruff.toml"
|
||||
ruff_autofix_select = [
|
||||
"I",
|
||||
"RUF022",
|
||||
]
|
||||
run_ruff_check = true
|
||||
ruff_check_config = "ruff.toml"
|
||||
run_ruff_format = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue