From c20de0ee6a476115b746740cd96ce7816a386887 Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Thu, 17 Jul 2025 14:50:23 -0500 Subject: [PATCH] Added code checking Added code checking --- .github/workflows/code-check.yml | 50 +++++++++++++++++++ .idea/.gitignore | 8 --- .../inspectionProfiles/profiles_settings.xml | 6 --- .idea/misc.xml | 4 -- .idea/modules.xml | 8 --- .idea/public-setupfiles.iml | 12 ----- .idea/vcs.xml | 6 --- 7 files changed, 50 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/code-check.yml delete mode 100644 .idea/.gitignore delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/public-setupfiles.iml delete mode 100644 .idea/vcs.xml diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml new file mode 100644 index 0000000..664b129 --- /dev/null +++ b/.github/workflows/code-check.yml @@ -0,0 +1,50 @@ +name: Code Quality Check + +on: + push: + paths: + - '**.py' + - '**.sh' + pull_request: + paths: + - '**.py' + - '**.sh' + +jobs: + lint-python: + name: Python Code Linting + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Python linters + run: | + pip install black flake8 + + - name: Run black + run: black --check . + + - name: Run flake8 + run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + + lint-shell: + name: Shell Script Linting + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install shellcheck + run: sudo apt-get install -y shellcheck + + - name: Run shellcheck + run: | + find . -type f -name "*.sh" -exec shellcheck {} + \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index d56657a..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 8e026d9..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/public-setupfiles.iml b/.idea/public-setupfiles.iml deleted file mode 100644 index 5ed0139..0000000 --- a/.idea/public-setupfiles.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file