Skip to content

Commit 0ccb07e

Browse files
committed
Push
1 parent ca67a68 commit 0ccb07e

File tree

3 files changed

+54
-3
lines changed

3 files changed

+54
-3
lines changed
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Qodana
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- v4.2-dev
9+
10+
jobs:
11+
qodana:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
checks: write
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.pull_request.head.sha }}
21+
fetch-depth: 0
22+
- name: 'Qodana Scan'
23+
uses: JetBrains/[email protected]
24+
env:
25+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

qodana.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#-------------------------------------------------------------------------------#
2+
# Qodana analysis is configured by qodana.yaml file #
3+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
4+
#-------------------------------------------------------------------------------#
5+
version: "1.0"
6+
7+
#Specify inspection profile for code analysis
8+
profile:
9+
name: qodana.starter
10+
11+
#Enable inspections
12+
#include:
13+
# - name: <SomeEnabledInspectionId>
14+
15+
#Disable inspections
16+
#exclude:
17+
# - name: <SomeDisabledInspectionId>
18+
# paths:
19+
# - <path/where/not/run/inspection>
20+
21+
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
22+
#bootstrap: sh ./prepare-qodana.sh
23+
24+
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
25+
#plugins:
26+
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
27+
28+
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
29+
linter: jetbrains/qodana-python:2024.3

src/modules/SystemStatus.py

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from asyncio.subprocess import Process
2-
31
import psutil
4-
52
class SystemStatus:
63
def __init__(self):
74
self.CPU = CPU()

0 commit comments

Comments
 (0)