Skip to content

Commit

Permalink
Add lint selection in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
magaupp committed Dec 1, 2024
1 parent 218e971 commit 70fbb8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
export AEOLUS_INITIAL_DIRECTORY=${PWD}
static_code_analysis () {
echo '⚙️ executing static_code_analysis'
ruff check --output-format=sarif --output-file=ruff.sarif --exit-zero --select=ALL "${studentParentWorkingDirectoryName}"
ruff check --output-format=sarif --output-file=ruff.sarif --exit-zero "${studentParentWorkingDirectoryName}"
}

build_and_test_the_code () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
api: v0.0.1
actions:
- name: static_code_analysis
script: ruff check --output-format=sarif --output-file=ruff.sarif --exit-zero --select=ALL "${studentParentWorkingDirectoryName}"
script: ruff check --output-format=sarif --output-file=ruff.sarif --exit-zero "${studentParentWorkingDirectoryName}"
results:
- name: ruff
path: ruff.sarif
Expand Down
15 changes: 15 additions & 0 deletions src/main/resources/templates/python/test/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]

0 comments on commit 70fbb8f

Please sign in to comment.