-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a new tool 'pre-commit' for the development mode #13
Conversation
ruff.toml
Outdated
@@ -0,0 +1,18 @@ | |||
target-version = "py312" |
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.
Нам обязательно отдельный конфигуратор для ruff такой создавать?
Посмотри пожалуйста на ПР #15 Если мы всё укажем в pyproject.toml?
Если же нет, то давай примерно одинаковую конфигурацию сделаем и для poetry и pre-commit
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.
Посмотри пожалуйста на конфигурацию в poetry
@BIXBER Еще есть конфликты в pyproject.toml |
Пересмотрел свое решение касаемо выноса ruff в отдельный файл и перенес все недостающие конфиг-лайны в pyproject.toml. Решил все git-conflict'ы. |
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.
Отлично! Мержим
К проекту был добавлен новый инструмент, позволяющий производить полезные действия перед записью изменений в рабочую ветку разработчика.
Такая возможность позволяет:
Для пользования данным инструментом, необходимо в активированном виртуальном окружении выполнить команду установки всех зависимостей:
И выполнить установку всех hook'ов из удаленных репозиториев, одноразово выполнив команду:
Также был обновлен файл конфигурации 'pyproject.toml', где были добавлены и разделены зависимости по режимам запуска проекта (разработка и продакшн); был добавлен файл конфигурации инструмента ruff, который выполняет форматирование и линтинг исходного кода Python.