Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -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 .
3 changes: 0 additions & 3 deletions HW2-PersonalPage/_config.yml

This file was deleted.

10 changes: 0 additions & 10 deletions HW2-PersonalPage/index.md

This file was deleted.

10 changes: 10 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -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
Loading