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
24 changes: 24 additions & 0 deletions .github/workflows/ruffcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Ruff Lint Check

on:
push:
branches: [ "main" ] # Запускать при пуше в main
pull_request: # И при создании/обновлении PR
branches: [ "main" ]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # Клонирует репозиторий

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13" # Укажите вашу версию Python

- name: Install Ruff
run: pip install ruff

- name: Run Ruff
run: ruff check . # Проверяет все файлы в проекте
2 changes: 1 addition & 1 deletion git/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ def main():
print("Некорректный ввод. Попробуйте ещё раз.")

if __name__ == "__main__":
main()
main()