Skip to content

Commit

Permalink
created .flake8 added linter and code formatters to noxfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dreyjo committed Jan 23, 2024
1 parent b600cb9 commit 9a6708a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
ignore = E203, W503
max-line-length = 88
9 changes: 8 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ def test(session):
for v in versions:
session.run("pytest")

@nox.session(python=versions)
@nox.session(python=versions[-1])
def lint(session):
#install linter
session.install("flake8")
#install code formatters
session.install("black", "isort")
#run code formatters
session.run("black""src","tests")
session.run("isort","src","tests")
#run linter
session.run("flake8")

0 comments on commit 9a6708a

Please sign in to comment.