Skip to content
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 lint tools to the project #1

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Conversation

OscarMoya
Copy link

Added two Makefile recipes in order to format the code and pass the linter and the type checker using autopep8 for formatting and mypy and flake for linting.

This will ensure that all contributions to this project will follow the same rules and the code will be more traceble and easier to read and follow.

As part of this PR there are some other minor fixes:

  • Removed * imports
  • Fixed some naming conventions
  • Fixed some Imports between SqlModel/SqlAlchemy objects
  • Added type returns to all the functions
  • Removed unused imports
  • Fix minor style issues

@OscarMoya OscarMoya force-pushed the add_lint_tools branch 2 times, most recently from cfe3750 to 7a17910 Compare June 6, 2024 12:02
Copy link
Member

@msune msune left a comment

Choose a reason for hiding this comment

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

Awesome @OscarMoya. Some very minor comments. Thanks!

Makefile Outdated Show resolved Hide resolved
.github/workflows/ci.yaml Show resolved Hide resolved
Added two Makefile recipes in order to format the code and pass the
linter and the type checker using autopep8 for formatting and mypy and
flake for linting.

This will ensure that all contributions to this project will follow the
same rules and the code will be more traceble and easier to read and
follow.

As part of this PR there are some other minor fixes:

* Removed `*` imports
* Fixed some naming conventions
* Fixed some Imports between SqlModel/SqlAlchemy objects
* Added type returns to all the functions
* Removed unused imports
* Fix minor style issues

Signed-off-by: Oscar Moya <[email protected]>
@msune
Copy link
Member

msune commented Jun 6, 2024

Thx a ton! merging 😀

@msune msune merged commit c07fe17 into datahangar:main Jun 6, 2024
4 checks passed
@OscarMoya OscarMoya deleted the add_lint_tools branch June 7, 2024 06:23
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.

2 participants