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

GH Linting Improvements #1272

Merged
merged 7 commits into from
Mar 10, 2024
Merged

GH Linting Improvements #1272

merged 7 commits into from
Mar 10, 2024

Conversation

bmos
Copy link
Contributor

@bmos bmos commented Mar 9, 2024

  • JSON validation was being run when other actions were modified, no longer does
  • Added python 3.12 to linting version matrix to watch for use of deprecated syntax and methods
  • Remove branch filter from linting workflow (so it lints any forks and PRs)
  • Use ruff command line flags to export results as SARIF file and upload to GitHub CodeQL
  • Requirements.txt uses ">=X, <X" syntx to allow future minor+patch updates but not future major versions (except to homeassistant)
  • Use uv for installing requirements in linting action to reduce runtime

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@bmos
Copy link
Contributor Author

bmos commented Mar 9, 2024

I have tested these actions on a fork and they should be ready for merging.
https://github.com/bmos/HA-Battery-Notes/actions/runs/8217464781
https://github.com/bmos/HA-Battery-Notes/actions/runs/8217467594

@bmos
Copy link
Contributor Author

bmos commented Mar 10, 2024

@andrew-codechimp andrew-codechimp merged commit 2dc2489 into andrew-codechimp:main Mar 10, 2024
6 checks passed
@andrew-codechimp
Copy link
Owner

Thanks for these improvements, actions I'm slowly stumbling my way around and knew there was more that could be improved but it's a distraction from the real code so never gets a high priority.

@bmos
Copy link
Contributor Author

bmos commented Mar 10, 2024

I think your priorities are well-chosen, the new Battery Stats features and the translations getting built out are very cool!

@bmos bmos deleted the patch-1 branch March 10, 2024 11:27
andrew-codechimp pushed a commit that referenced this pull request Apr 18, 2024
* updated ruff config syntax

* don't validate json when other actions are updated

* efficient linting + 3.12

* integrate ruff with github code ql

* use more permissive versions in requirements

* add trigger on schema

* update softprops/action-gh-release
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