Set up code formatting tools
- auto-format code with:
+ autoflake => * remove unused imports and variables
* remove duplicate dict keys
* expand star imports
+ black => enforce an uncompromising code style
+ isort => enforce a consistent import style
compliant with Google's Python style guide
- add nox session "format" to run these tools
This commit is contained in:
parent
ceabb00bab
commit
fb407631d9
5 changed files with 335 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.cache/
|
||||
poetry.toml
|
||||
**/__pycache__/
|
||||
.venv/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue