Skip to content
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

Commits #78

Closed
wants to merge 14 commits into from
Closed
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
88 changes: 88 additions & 0 deletions .github copy/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Bug report
description: Create a bug report to help us address errors in the repository
labels: [bug]
body:
- type: markdown
attributes:
value: >
<p>Attention! </p>
<b>We insert an error message from the terminal into the name of the issues!</b>

- type: checkboxes
id: checks
attributes:
label: Checklist
description: "Please confirm the following:"
options:
- label: I added a descriptive title.
required: true
- label: I searched through [existing issues](https://t.me/c/1937296927/3602/25534) and couldn't find a solution or duplicate issue.
required: true
- label: I searched on the web (e.g. Google) or [chatGPT](https://t.me/c/1937296927/2415/23729) and didn't find any helpful information.
required: true

- type: input
attributes:
label: "Hash commit / link"
description: >
If possible, provide a hash of your commit or just paste the link to it here
placeholder: "a0b0f414ae134aa1772d33bb930e5a960f9979e8"
validations:
required: false

- type: input
attributes:
label: "Video"
description: >
insert a link to a YouTube video where you demonstrate the problem and show how to reproduce it
placeholder: "link to the video"
validations:
required: false

- type: textarea
attributes:
label: "Attach a full screenshot and write what did you do to fix the problem?"
description: "Attach a full screenshot of your screen, which will show the entire desktop and your error"
validations:
required: true

- type: textarea
attributes:
label: "Error from the terminal / Code"
description: >
write the code or copy the error from the terminal and paste it here, also provide log file if possible
placeholder: |
scripts/build_directory_md.py:22: error: Function is missing a type annotation
[no-untyped-def]
def md_prefix(i):
^
scripts/build_directory_md.py:32: error: Call to untyped function "md_prefix"
in typed context [no-untyped-call]
print(f"{md_prefix(i)} {new_part.replace('_', ' ').title()...
^~~~~~~~~~~~~
scripts/build_directory_md.py:46: error: Call to untyped function "md_prefix"
in typed context [no-untyped-call]
print(f"{md_prefix(indent)} [{filename}]({url})")
...
validations:
required: true

- type: textarea
attributes:
label: "Expected behavior"
description: "Describe the behavior you expect. May include images or videos."
validations:
required: true
- type: textarea
attributes:
label: "Actual behavior"
description: >
Actual behavior with a description of how to reproduce the problem
placeholder: |
## Steps to Reproduce the Problem
1.
2.
3.
...
validations:
required: true
28 changes: 28 additions & 0 deletions .github/workflows/directory_writer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "SENATOROV"
permissions:
contents: write
on: [push]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Set script executable permission
run: chmod +x scripts/build_directory_md.py
- name: Write DIRECTORY.md and README.md
run: |
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
scripts/build_directory_md.py 2>&1 | tee README.md
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Commit and push changes
run: |
git add DIRECTORY.md README.md
git commit -m "SENATOROV updating DIRECTORY.md and README.md" || echo "No changes to commit"
git push --force
24 changes: 24 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "SENATOROV"
permissions:
contents: write
on:
push:
branches:
- "**"
schedule:
- cron: "0 0 * * *" # Run every day
workflow_dispatch:
create:
delete:
release:
issues:
pull_request:
branches:
- "**"
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user ruff
- run: ruff check --fix --output-format=github $(git ls-files '*.py' '*.ipynb') # Lint Python files
Empty file added Algorithms/dir
Empty file.
Empty file added Algorithms/files/dir
Empty file.
13 changes: 9 additions & 4 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@

## Docs
* Git
* [Git Command](docs/git/git_command.ipynb)
* [Intro To Git](docs/git/intro_to_git.ipynb)
## Python
* Made-Easy
* Python
* Made-Easy
* [Chapter 1 Intro To Datascience](Python/made-easy/Python/made-easy/chapter_1_intro_to_datascience.ipynb)
* [Chapter 2 Intro To Python](Python/made-easy/Python/made-easy/chapter_2_intro_to_python.ipynb)

## [Log](/log.ipynb)

21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 SENATOROVAI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file not shown.
Binary file not shown.
Empty file added Math/dir
Empty file.
Binary file added Math/lektorium/continuity_of_a_function.pdf
Binary file not shown.
Binary file not shown.
Binary file added Math/lektorium/number_sequence.pdf
Binary file not shown.
Empty file added Math/school_math/dir
Empty file.
111 changes: 111 additions & 0 deletions Python/commits.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Task commits.'"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\"\"\"Task commits.\"\"\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Опишите своими словами назначение каждого\n",
" из этих типов коммитов:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- feat - добавляет новую фичу в код\n",
"- fix - исправляет баг в коде\n",
"- docs - такой нужен в случае, если изменения только в документации\n",
"- style - не влияет на сам код (пробелы, точки с запятой и т.д)\n",
"- refactor - помогает сделать код чище, т.е не влияет на фичи и\n",
"- не чинит баг. Но делает код более читабельным и понятным.\n",
"- test - добавляет тесты или исправляет существующие\n",
"- build - влияет на систему сборки или внешние зависимости\n",
"- ci - добавляет изменения в файлах конфигурации CI и скриптах. \n",
"То есть настраивает изменение процессов\n",
"сборки, тестирования и деплоя.\n",
"- perf - улучшается производительность \n",
"- chore - нужен для технического обслуживания проекта\n",
" ( модифицирование и обновление зависимостей)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2) git commit -m \"fix: rounding error in round function \n",
"Now it correctly rounds numbers\"\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"3. git commit -m \"feat: add generateReport function\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"4. git commit -m \"style: fix indentation and formatting\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"5. git commit -m \"docs: update documentation for generateReport function\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"6. git commit -m \"test: add unit 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.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
25 changes: 25 additions & 0 deletions Python/commits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Task commits."""

# 1. Опишите своими словами назначение каждого
# из этих типов коммитов:

# - feat - добавляет новую фичу в код
# - fix - исправляет баг в коде
# - docs - такой нужен в случае, если изменения только в документации
# - style - не влияет на сам код (пробелы, точки с запятой и т.д)
# - refactor - помогает сделать код чище, т.е не влияет на фичи и
# - не чинит баг. Но делает код более читабельным и понятным.
# - test - добавляет тесты или исправляет существующие
# - build - влияет на систему сборки или внешние зависимости
# - ci - добавляет изменения в файлах конфигурации CI и скриптах.
# То есть настраивает изменение процессов
# сборки, тестирования и деплоя.
# - perf - улучшается производительность
# - chore - нужен для технического обслуживания проекта
# ( модифицирование и обновление зависимостей)

# 2) git commit -m "fix: rounding error in round function
# Now it correctly rounds numbers"
#
#
#
Loading
Loading