- Наличие корректного
.gitignoreфайла (или может быть нескольких для front и backend частей проекта, если они в одной репе). В хорошем.gitignoreфайле должны быть прописано виртуальное окружение, различные кэши__pycache__,.pytest_cache, логи, файлы баз данных (.sqlite3) и т. д. В идеале, чтобы командаgit add .запущенная в корне проекта не добавила ничего лишнего в индекс. (Примеры хороших можно взять здесь) - Подбробный и понятный
README.md. Например, можно воспользоваться вот этой инструкцией. Главное в readme должно быть:- название проекта
- описание
- разделы "Как запустить/установить проект/приложение" (здесь должны быть указаны необходимые переменные окружения для запуска/сборки,
желательно готовые команды, чтобы можно было клонировать проект, скопировать
.envи запустить.
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
| #!/bin/sh | |
| set -e | |
| # Docker Engine for Linux installation script. | |
| # | |
| # This script is intended as a convenient way to configure docker's package | |
| # repositories and to install Docker Engine, This script is not recommended | |
| # for production environments. Before running this script, make yourself familiar | |
| # with potential risks and limitations, and refer to the installation manual | |
| # at https://docs.docker.com/engine/install/ for alternative installation methods. | |
| # |
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
| import time | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| def click_on_suggestion(ind=0): | |
| suggestion_el = driver.find_elements(By.CLASS_NAME, "rzd-suggestion-block") | |
| suggestion_els = suggestion_el[ind].find_elements(By.TAG_NAME, "li") | |
| suggestion_els[1].click() |