-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Tox-compliant EDA code, and Tox checks in CI (#453)
- Loading branch information
1 parent
13aedcc
commit 9a50c9b
Showing
4 changed files
with
147 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Recommended usage of this file is detailed in https://github.com/ansible/eda-partner-testing/blob/main/README.md. | ||
# The linter paths can be changed, but may result in false passes. | ||
# {posargs} in this case would be the path to collection root relative from the .github/workflows dir (`../..`) | ||
|
||
[tox] | ||
envlist = ruff, darglint, pylint-event-source, pylint-event-filter | ||
requires = | ||
ruff | ||
darglint | ||
pylint | ||
|
||
[testenv:ruff] | ||
deps = ruff | ||
commands = ruff check --select ALL --ignore INP001 -q {posargs}/extensions/eda/plugins | ||
|
||
|
||
[testenv:darglint] | ||
deps = darglint | ||
commands = darglint -s numpy -z full {posargs}/extensions/eda/plugins | ||
|
||
|
||
# If you dont have any event_source or event_filter plugins, remove the corresponding testenv | ||
[testenv:pylint-event-source] | ||
deps = pylint | ||
commands = pylint {posargs}/extensions/eda/plugins/event_source/*.py --output-format=parseable -sn --disable R0801 --disable E0401 | ||
|
||
; [testenv:pylint-event-filter] | ||
; deps = pylint | ||
; commands = pylint {posargs}/extensions/eda/plugins/event_filter/*.py --output-format=parseable -sn --disable R0801 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters