Qodana is a code quality monitoring platform that allows you to evaluate the integrity of code you own, contract, or purchase. It brings into your CI/CD pipelines all the smart features you love in the JetBrains IDEs plus continues adding project-level checks like clone detection and license audit.
Qodana Python is based on PyCharm Professional and provides static analysis for Python projects.
Table of Contents
project-dir- Project folder to inspect (default${{ github.workspace }})results-dir- Save results to folder (default${{ github.workspace }}/qodana)cache-dir- Save cache to folder (default/home/runner/work/_temp/_github_home/qodana-cache)inspected-dir- Directory to be inspected. If not specified, the whole project is inspected by defaultbaseline- Run in baseline mode. Provide the path to an exisitng SARIF report to be used in the baseline state calculationbaseline-include-absent- Include in the output report the results from the baseline run that are absent in the current run (defaultfalse)fail-threshold- Set the number of problems that will serve as a quality gate. If this number is reached, the inspection run is terminatedsave-html-report- Generate HTML report (defaultfalse)profile-name- Name of a profile defined in projectprofile-path- Absolute path to the profile fileadditional-volumes- Additional volumes to mount to qodana docker imageadditional-env-variables- Additional environment variables to pass to qodana docker image
- uses: JetBrains/qodana-python-action@v1.1.1-eapAll action's inputs are optional.
- uses: JetBrains/qodana-python-action@v1.1.1-eap
with:
fail-threshold: 10
additional-env-variables: |
IDEA_PROPERTIES='/data/project/idea.properties'An example of the Qodana command-line summary output:
---- Qodana - Code Inspection ----
2 problem(s) with Critical severity
- Category(ies): General
1 problem(s) with Moderate severity
- Category(ies): Code style
---- Problems reported: 3 ----
By using Qodana, you agree to the JetBrains EAP user agreement and JetBrains privacy policy.
