Skip to content

Commit

Permalink
Update Qodana config
Browse files Browse the repository at this point in the history
  • Loading branch information
zim514 committed Apr 7, 2024
1 parent 6e8e25a commit 1e0dc68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
name: Qodana
on:
pull_request:
workflow_dispatch:
push:
branches:
- main


jobs:
Qodana:
runs-on: ubuntu-latest
if: github.repository == 'zim514/script.service.hue'
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit

Check warning on line 21 in .github/workflows/code_quality.yml

View workflow job for this annotation

GitHub Actions / Qodana for Python

Line is longer than allowed by code style

Line is longer than allowed by code style (\> 120 columns)
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@latest
Expand All @@ -19,4 +27,4 @@ jobs:
cache-default-branch-only: true
args: --baseline,qodana.sarif.json
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
11 changes: 3 additions & 8 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"

#Specify inspection profile for code analysis
profile:
name: qodana.starter

#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>

#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
Expand All @@ -21,18 +18,16 @@ exclude:
- name: All
paths:
- script.service.hue/resources/lib/rgbxy


- name: PyPep8Inspection
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
#bootstrap: sh ./prepare-qodana.sh

bootstrap: |
rm -rf .idea
pip install -r requirements.txt
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)

#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
linter: jetbrains/qodana-python:latest
include:
- name: LongLine

0 comments on commit 1e0dc68

Please sign in to comment.