Skip to content

Commit

Permalink
Move autopep8 and flake8 config to config files
Browse files Browse the repository at this point in the history
This allows for auto-formatting with vscode (and others).
  • Loading branch information
maltejur authored and tomrittervg committed Apr 4, 2024
1 parent 52da721 commit 3a7e944
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .flake8
@@ -0,0 +1,2 @@
[flake8]
ignore = E501,E402,E275
4 changes: 2 additions & 2 deletions format.sh
@@ -1,4 +1,4 @@
#!/bin/bash

poetry run autopep8 --in-place --recursive --ignore E501,E402,E275 .
poetry run flake8 --ignore=E501,E402,E275 .
poetry run autopep8 .
poetry run flake8 .
5 changes: 5 additions & 0 deletions pyproject.toml
Expand Up @@ -23,3 +23,8 @@ flake8 = "^5.0.4"
[build-system]
requires = ["poetry>=1.1.0"]
build-backend = "poetry.masonry.api"

[tool.autopep8]
ignore = "E501,E402,E275"
in-place = true
recursive = true

0 comments on commit 3a7e944

Please sign in to comment.