-
-
Notifications
You must be signed in to change notification settings - Fork 126
Task commits #5 (https://github.com/SENATOROVAI/intro-cs/issues/5) #603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| { | ||
| "cells": [ | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": null, | ||
| "id": "36b04ed6", | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "\"\"\"Ответы к заданию Commits.\"\"\"" | ||
| ] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "1f8da474", | ||
| "metadata": {}, | ||
| "source": [ | ||
| "1. Опишите своими словами назначение каждого из этих типов коммитов:\n", | ||
| "feat, fix, docs, style, refactor, test, build, ci, perf, chore. \n", | ||
| "feat: новая функция. \n", | ||
| "fix: исправление бага. \n", | ||
| "docs: изменения в документации. \n", | ||
| "style: изменения внешнего вида или форматирования кода без изменения его функциональности. \n", | ||
| "refactor: переработка кода без новой функции и без фикса бага. \n", | ||
| "test: изменения в тестах. \n", | ||
| "build: изменение зависимостей, конфигурации или добавление новых инструментов. \n", | ||
| "ci: изменение/обновление конфигурационных файлов. \n", | ||
| "perf: улучшение производительности кода. \n", | ||
| "chore: служебные изменения\n", | ||
| "2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix). \n", | ||
| "fix: fix number rounding error\n", | ||
| "3. Добавление новой функциональности:\n", | ||
| "Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности. \n", | ||
| "feat: add generateReport function\n", | ||
| "4. Модификация формата кода или стилей:\n", | ||
| "Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style. \n", | ||
| "style: format code and fix indentation\n", | ||
| "5. Документация и тестирование:\n", | ||
| "Сделайте фиктивный коммит с типом docs, добавляющий или улучшающий документацию для вашей новой функции.\n", | ||
| "Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции. \n", | ||
| "docs: add documentation for generateReport function \n", | ||
| "test: add tests for generateReport function. " | ||
| ] | ||
| } | ||
| ], | ||
| "metadata": { | ||
| "kernelspec": { | ||
| "display_name": "base", | ||
| "language": "python", | ||
| "name": "python3" | ||
| }, | ||
| "language_info": { | ||
| "codemirror_mode": { | ||
| "name": "ipython", | ||
| "version": 3 | ||
| }, | ||
| "file_extension": ".py", | ||
| "mimetype": "text/x-python", | ||
| "name": "python", | ||
| "nbconvert_exporter": "python", | ||
| "pygments_lexer": "ipython3", | ||
| "version": "3.13.9" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| """Ответы к заданию Commits.""" | ||
|
|
||
| # 1. Опишите своими словами назначение каждого из этих типов коммитов: | ||
| # feat, fix, docs, style, refactor, test, build, ci, perf, chore. | ||
| # feat: новая функция. | ||
| # fix: исправление бага. | ||
| # docs: изменения в документации. | ||
| # style: изменения внешнего вида или форматирования кода без изменения его функциональности. | ||
| # refactor: переработка кода без новой функции и без фикса бага. | ||
| # test: изменения в тестах. | ||
| # build: изменение зависимостей, конфигурации или добавление новых инструментов. | ||
| # ci: изменение/обновление конфигурационных файлов. | ||
| # perf: улучшение производительности кода. | ||
| # chore: служебные изменения | ||
| # 2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix). | ||
| # fix: fix number rounding error | ||
| # 3. Добавление новой функциональности: | ||
| # Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности. | ||
| # feat: add generateReport function | ||
| # 4. Модификация формата кода или стилей: | ||
| # Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style. | ||
| # style: format code and fix indentation | ||
| # 5. Документация и тестирование: | ||
| # Сделайте фиктивный коммит с типом docs, добавляющий или улучшающий документацию для вашей новой функции. | ||
| # Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции. | ||
| # docs: add documentation for generateReport function | ||
| # test: add tests for generateReport function. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделай ревью