Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add pre-commit hooks #16

Closed
5 tasks
nesnoj opened this issue Dec 13, 2022 · 2 comments · Fixed by #64
Closed
5 tasks

Add pre-commit hooks #16

nesnoj opened this issue Dec 13, 2022 · 2 comments · Fixed by #64

Comments

@nesnoj
Copy link
Member

nesnoj commented Dec 13, 2022

For

  • black
  • isort
  • pylint
  • flake8
  • mypy (for type hinting)

Example from eDisGo

@nesnoj nesnoj added the enhancement ⭐ New feature or request label Dec 13, 2022
@nesnoj
Copy link
Member Author

nesnoj commented Dec 13, 2022

Just received - rather for documentation purposes:

  • ruff - Ruff can be used to replace Flake8 (plus a variety of plugins), isort, pydocstyle, yesqa, eradicate, and even a subset of pyupgrade and autoflake all while executing tens or hundreds of times faster than any individual tool.
  • pydocstyle - pydocstyle is a static analysis tool for checking compliance with Python docstring conventions.
  • darglint - A functional docstring linter which checks whether a docstring's description matches the actual function/method implementation.
  • ssort - Sorts the contents of python modules so that statements are placed after the things they depend on, but leaves grouping to the programmer. Groups class members by type and enforces topological sorting of methods.

@nesnoj nesnoj added development 🔧 and removed enhancement ⭐ New feature or request labels Jan 19, 2023
@nesnoj
Copy link
Member Author

nesnoj commented Feb 22, 2023

Mind interferences e.g. between black and isort

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants