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

Update project and CI #221

Merged
merged 13 commits into from
Sep 26, 2023
Merged

Update project and CI #221

merged 13 commits into from
Sep 26, 2023

Conversation

marcelveldt
Copy link
Collaborator

@marcelveldt marcelveldt commented Sep 26, 2023

Housekeeping PR as the repo was missing a lot of linting and CI and was a bit behind in standards.

  • Bump python version to 3.10 to use newer style type annotations
  • Move to pyproject.toml
  • Add basic linting configuration using ruff
  • Add pre-commit
  • Update existing code so it will work with the updated lint config
  • Add missing EffectStatus entries

Also switched to automatic version numbering following our other libs.

Commented out pylint and mypy in the precommit config, will fix those in follow up PR(s) as it needs a bit more work on the code and this PR would be huge otherwise.

uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

We could directly switch to Trusted Publisher to improve security

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yes, can we do that in a follow up? I'm not sure how to do that with the libs org and I think the PYPI account linked is still from @balloob

aiohue/v1/api.py Outdated Show resolved Hide resolved
aiohue/v2/models/feature.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
aiohue/v1/api.py Outdated Show resolved Hide resolved
@marcelveldt marcelveldt merged commit 727321b into master Sep 26, 2023
1 check passed
@marcelveldt marcelveldt deleted the pyproject branch September 26, 2023 13:38
@marcelveldt marcelveldt restored the pyproject branch September 26, 2023 13:44
@marcelveldt marcelveldt deleted the pyproject branch September 26, 2023 13:44
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