Skip to content

Conversation

faux66
Copy link
Contributor

@faux66 faux66 commented Sep 17, 2025

Summary

Fixed CLI.

Solve the issue: #76

Quick changelog

  • Updated pyproject.toml for Poetry compatibility.
  • Added shared.py to centralize common CLI dependencies.
  • Refactored cli.py and configure.py to use the new shared module, removing direct dependencies.
  • Added __main__.py to provide a standard executable entry point for the package.

What's new?

This PR fixes known bugs with CLI dependencies.

@faux66 faux66 requested review from f1i3g3 and alex98247 September 17, 2025 13:11
@f1i3g3
Copy link
Contributor

f1i3g3 commented Sep 17, 2025

Формат PR пойдет, только надо добавить ссылку на issue.

Copy link
Contributor

@f1i3g3 f1i3g3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Немножко упало покрытие, но для этой таски не так важно.
Несколько строк пропало, их надо вернуть, по идее.
Пока что оставлю так.

rich = "==13.9.4"
click = ">=8.2.1"
dacite = "==1.9.2"
pysatl-criterion = {path = "./pysatl_criterion"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Там точно @ не нужна?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не нужна

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Верю :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оставлю здесь заметку на потом.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines-after-imports = 2

[tool.flake8]
ignore = ["E121", "E123", "E126", "E24", "E203", "E704", "W503", "W504"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А это почему исчезло?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flake8 линтер и ruff линтер, делают одно и тоже. В PySATL'e используют ruff

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я про сами коды варнингов (например, https://www.flake8rules.com/rules/E121.html).
Имхо, стоит их добавить в соответствующий раздел для ruff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так даже не было же в зависимостях flake8, это мертвый код изначально?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотя он есть в pre-commit'e, но я не очень понимаю как это должно работать

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ладно, пока так оставим.
При необходимости добавлю отдельным коммитом, пускай ветка остаётся (и заметка здесь).

@f1i3g3 f1i3g3 assigned f1i3g3 and faux66 and unassigned f1i3g3 Sep 17, 2025
@faux66 faux66 requested a review from f1i3g3 September 18, 2025 09:13
@faux66 faux66 linked an issue Sep 18, 2025 that may be closed by this pull request
Copy link
Contributor

@f1i3g3 f1i3g3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alex98247, думаю, можно мерджить (только ветку оставь, пожалуйста).

@alex98247 alex98247 merged commit a1ea9c5 into main Sep 24, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix CLI
3 participants