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

feat: consolidate to pyproject.toml #29

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Conversation

WilliamBergamin
Copy link
Contributor

Type of change (place an x in the [ ] that applies)

  • New sample
  • New feature
  • Bug fix
  • Documentation

Summary

The python community is slowly recommending to use the pyproject.toml to configure projects

This PR tries to consolidate the project configurations to the pyproject.toml

Requirements (place an x in each [ ] that applies)

  • I’ve checked my submission against the Samples Checklist to ensure it complies with all standards
  • I have ensured the changes I am contributing align with existing patterns and have tested and linted my code
  • I've read and agree to the Code of Conduct

@WilliamBergamin WilliamBergamin added the enhancement New feature or request label Feb 6, 2024
@WilliamBergamin WilliamBergamin self-assigned this Feb 6, 2024
Copy link
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

LGTM! 🐍 The same configurations in fewer files is always a wonderful thing

@@ -1,3 +0,0 @@
[flake8]
exclude = .gitignore,venv
Copy link
Member

Choose a reason for hiding this comment

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

Just checking that this is alright to exclude too? I don't find any linter errors with it gone, even with my .venv so it seems okay to me

Copy link
Contributor Author

@WilliamBergamin WilliamBergamin Feb 21, 2024

Choose a reason for hiding this comment

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

Unfortunately Flake8 does not exclude the virtual env folders, the dev must exclude them manually based on what they named the folders .env .venv venv etc..

This is why the readme informs the users to use flake8 *.py && flake8 listeners/ to lint the project

.flake8 Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Darn that flake8 doesn't support pyproject.toml yet 😕

@WilliamBergamin WilliamBergamin merged commit bd1b5b4 into main Feb 21, 2024
3 checks passed
@WilliamBergamin WilliamBergamin deleted the consolidate-to-pyproject branch February 21, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants