diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..03837e5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +# CI Script for Code maintenance +name: Code Quality Check + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +jobs: + lint-and-format: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up uv & Python + uses: astral-sh/setup-uv@v5 + with: + python-version: "3.14" + enable-cache: true + + - name: Check Code Linting & Syntax Errors + run: uvx ruff check . + + - name: Verify Formatting Styles + run: uvx ruff format --check . \ No newline at end of file diff --git a/.ruff.toml b/.ruff.toml new file mode 100644 index 0000000..5d01075 --- /dev/null +++ b/.ruff.toml @@ -0,0 +1,5 @@ +target-version = "py314" +extend-include = ["*.ipynb"] + +[lint] +select = ["E", "F", "I"] \ No newline at end of file