Skip to content

Commit

Permalink
Add flake8 configuration for additional linting rules and create a fl…
Browse files Browse the repository at this point in the history
…ake8 test environment
  • Loading branch information
msbc committed Dec 1, 2024
1 parent 8055ec7 commit 8a5ef0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
max-line-length=120
per-file-ignores =
__init__.py:F401
__init__.py:F401
helmeos/table_param.py:E221,E222
9 changes: 8 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{8,9,10,11,12,13}
envlist = flake8,py3{8,9,10,11,12,13}
isolated_build = true

[testenv]
Expand Down Expand Up @@ -29,3 +29,10 @@ commands =
pytest --cov=helmeos --cov-report=xml tests/
commands_post =
rm -rf helmholtz

[testenv:flake8]
description = Run flake8 for code linting
deps = flake8
commands_pre =
commands = flake8 helmeos tests
commands_post =

0 comments on commit 8a5ef0c

Please sign in to comment.