diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..3c70678 --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,27 @@ +name: Ruff Code Check + +on: + push: + pull_request: + +jobs: + ruff-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.13' + + - name: Install Ruff + run: pip install ruff + + - name: Run Ruff format check + run: ruff format --check --config=ruff.toml . + + - name: Run Ruff linting + run: ruff check --config=ruff.toml . diff --git a/HW2-PersonalPage/_config.yml b/HW2-PersonalPage/_config.yml deleted file mode 100644 index 418485a..0000000 --- a/HW2-PersonalPage/_config.yml +++ /dev/null @@ -1,3 +0,0 @@ -title: Grezin Danil -description: Personal page of Danil Grezin hosted via GitHub -theme: jekyll-theme-hacker diff --git a/HW2-PersonalPage/index.md b/HW2-PersonalPage/index.md deleted file mode 100644 index e1c0c7c..0000000 --- a/HW2-PersonalPage/index.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default ---- - -# Education -- Bachelor's degree student at St. Petersburg State University in the field of Programming Technology - -# Contacts -- email: grezindanil@gmail.com -- telegram: @dane4ka0_0 diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..984e0c7 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,10 @@ +line-length = 120 + +[lint] +ignore = ["W391"] +select = ["E", "W", "F", "I", "B", "E225", "E226", "E227", "E228"] +preview = true + +[format] +indent-style = "space" +skip-magic-trailing-comma = false