You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should add pre-commit and ruff as dev dependencies, and update the readme to instruct contributors to ensure pre-commit is set up when they clone this project.
This would help ensure pull requests are less likely to fail a check in the CI.
The current linting uses a combination of black, flake8, isort, pydocstyle - all of these can be replaced by ruff.
The text was updated successfully, but these errors were encountered:
# Description
* Replaces black, flake8, pydocstyle & isort with Ruff
* Adds `.pre-commit-config.yaml` file
* Fix some linting issues highlighted by Ruff in default setting, while
disabling a 5 rules. The following rules are disabled:
- ANN001
- ANN401
- S608
- SLF001
- EM101
`ANN001` * `ANN401` are disabled because the codebase has a few
instances where params / return values don't specify type or return
`Any`.
`S608` flags string based queries. It will require a deeper refactor to
leverage sqlalchemy exclusively.
`SFL001` flags accesses to private members. This is done to patch
`_confirm_primitive_property`.
`EM101` flags strings passed to Exceptions, which I felt was safe to do.
closes: #43
---------
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
Description
I think we should add pre-commit and ruff as dev dependencies, and update the readme to instruct contributors to ensure pre-commit is set up when they clone this project.
This would help ensure pull requests are less likely to fail a check in the CI.
The current linting uses a combination of black, flake8, isort, pydocstyle - all of these can be replaced by ruff.
The text was updated successfully, but these errors were encountered: