Move the autoflake config
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m7s
All checks were successful
CI / Tests (Python 3.13) (push) Successful in 1m7s
This commit is contained in:
parent
4ae9d48f30
commit
1750ffeaf5
2 changed files with 14 additions and 11 deletions
12
noxfile.py
12
noxfile.py
|
|
@ -99,17 +99,7 @@ def format_(session):
|
||||||
locations = session.posargs or SRC_LOCATIONS
|
locations = session.posargs or SRC_LOCATIONS
|
||||||
|
|
||||||
session.run('autoflake', '--version')
|
session.run('autoflake', '--version')
|
||||||
session.run(
|
session.run('autoflake', *locations)
|
||||||
'autoflake',
|
|
||||||
'--in-place',
|
|
||||||
'--recursive',
|
|
||||||
'--expand-star-imports',
|
|
||||||
'--remove-all-unused-imports',
|
|
||||||
'--ignore-init-module-imports', # modifies --remove-all-unused-imports
|
|
||||||
'--remove-duplicate-keys',
|
|
||||||
'--remove-unused-variables',
|
|
||||||
*locations,
|
|
||||||
)
|
|
||||||
|
|
||||||
session.run('black', '--version')
|
session.run('black', '--version')
|
||||||
session.run('black', *locations)
|
session.run('black', *locations)
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,19 @@ docs = [
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[tool.autoflake]
|
||||||
|
# Source: https://github.com/PyCQA/autoflake#configuration
|
||||||
|
|
||||||
|
in-place = true
|
||||||
|
recursive = true
|
||||||
|
expand-star-imports = true
|
||||||
|
remove-all-unused-imports = true
|
||||||
|
ignore-init-module-imports = true # modifies "remove-all-unused-imports"
|
||||||
|
remove-duplicate-keys = true
|
||||||
|
remove-unused-variables = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
|
|
||||||
target-version = ["py313"]
|
target-version = ["py313"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue