diff --git a/.github/workflows/CodeQL.yml b/.github/workflows/CodeQL.yml new file mode 100644 index 0000000..cd2b9e8 --- /dev/null +++ b/.github/workflows/CodeQL.yml @@ -0,0 +1,34 @@ +name: "CodeQL" + +on: [push] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python' ] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: CodeQL Initialization + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: CodeQL Analysis for security + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/.github/workflows/workflow_pipeline.yml b/.github/workflows/workflow_pipeline.yml new file mode 100644 index 0000000..117f188 --- /dev/null +++ b/.github/workflows/workflow_pipeline.yml @@ -0,0 +1,31 @@ +# This workflow basically checks the code quality i.e the syntax of python files using pylint +# and Black + +name: workflow_pipeline + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + name: Checking Code + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: 3.x + + - name: Installing dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + pip install black + + - name: Running pylint + run: | + find . -name '*.py' -exec pylint {} \; + + - name: Running black + uses: DataDog/action-py-black-formatter@v2.5 + with: + fail_on_error: 'false' diff --git a/19i1712_19i0553_Report.pdf b/19i1712_19i0553_Report.pdf new file mode 100644 index 0000000..b74200b Binary files /dev/null and b/19i1712_19i0553_Report.pdf differ diff --git a/src/edit_real.py b/src/edit_real.py index 551ea63..c342c2d 100644 --- a/src/edit_real.py +++ b/src/edit_real.py @@ -1,4 +1,5 @@ -import os, pdb +import os +import pdb import argparse import numpy as np