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

refactor: add pyproject.toml #663

Conversation

afuetterer
Copy link
Member

Hi there,

there is still room for improvement, but I wanted to suggest the toml for further discussion.

I added the following dependency groups:

  • mysql
  • postgres
  • tests
  • dev
  • ci

But tests, dev and ci are pretty similar.

Do you want to enforce using pre-commit for contributors? That is always a good idea. But if you want to use isort, flake8, (maybe black), you need to have on linting/reformatting-PR, I guess with the described 600+ files being changed. Also pre-commit should run on CI.

I can add isort settings, flake8 sadly cannot be configured using the toml file. I would nowadays always recommend using ruff, which is really great and fast and adopted by major projects like pandas. ruff can replace isort and flake8 in my opinion.

Another question is still #648. The installation process using the toml file does not work with Python 3.6.

What do you think?

@afuetterer afuetterer mentioned this pull request Aug 4, 2023
6 tasks
@afuetterer afuetterer force-pushed the add-toml-to-dev-setup-refactoring branch from bb879f1 to 647507b Compare August 4, 2023 11:55
@afuetterer afuetterer closed this Aug 4, 2023
@afuetterer
Copy link
Member Author

Whoops, I messed up the dependencies. See #664 instead

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.

1 participant