Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qodana Python

Qodana EAP version alert

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

Usage

  • 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 default
  • baseline - Run in baseline mode. Provide the path to an exisitng SARIF report to be used in the baseline state calculation
  • baseline-include-absent - Include in the output report the results from the baseline run that are absent in the current run (default false)
  • fail-threshold - Set the number of problems that will serve as a quality gate. If this number is reached, the inspection run is terminated
  • save-html-report - Generate HTML report (default false)
  • profile-name - Name of a profile defined in project
  • profile-path - Absolute path to the profile file
  • additional-volumes - Additional volumes to mount to qodana docker image
  • additional-env-variables - Additional environment variables to pass to qodana docker image
- uses: JetBrains/qodana-python-action@v1.1.1-eap

All 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'

Output Results

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 ----

License Summary

By using Qodana, you agree to the JetBrains EAP user agreement and JetBrains privacy policy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages