Skip to content

Commit

Permalink
Remove test directory filter from lint:security target (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti authored Nov 19, 2024
1 parent 21a7b2a commit 922385f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
## 🔧 Changed

* Updated gh-pages workflow to use the new multiversion nox task target

## 🐞 Fixed

* Removed the `test` file filter from `lint:security`
2 changes: 1 addition & 1 deletion exasol/toolbox/nox/_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def type_check(session: Session) -> None:
def security_lint(session: Session) -> None:
"""Runs the security linter on the project"""
py_files = [f"{file}" for file in python_files(PROJECT_CONFIG.root)]
_security_lint(session, list(filter(lambda file: "test" not in file, py_files)))
_security_lint(session, py_files)


@nox.session(name="lint:dependencies", python=False)
Expand Down
4 changes: 2 additions & 2 deletions exasol/toolbox/nox/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def _integration_tests(
) -> None:
pm = NoxTasks.plugin_manager(config)

# run pre intergration test plugins
# run pre integration test plugins
pm.hook.pre_integration_tests_hook(session=session, config=config, context={})

# run
command = _test_command(config.root / "test" / "integration", config, context)
session.run(*command)

# run post intergration test plugins
# run post integration test plugins
pm.hook.post_integration_tests_hook(session=session, config=config, context={})


Expand Down

0 comments on commit 922385f

Please sign in to comment.