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

Address deploy-agent lint errors #1642

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

osoriano
Copy link
Contributor

@osoriano osoriano commented Jun 3, 2024

ruff was recently introduced to the precommit checks.

This PR addresses the existing checks for deploy-agent:

  • Add ruff command to tox.ini
  • Run ruff check --fix
  • Run ruff check --fix --unsafe-fixes
    • Verified the fixes were safe
  • Use explicit exceptions
  • Remove unused variables and methods
  • Remove trailing ws

`ruff` was recently introduced to the precommit checks.

This PR addresses the existing checks for deploy-agent:

* Add `ruff` command to `tox.ini`
* Run `ruff check --fix`
* Run `ruff check --fix --unsafe-fixes`
  * Verified the fixes were safe
* Use explicit exceptions
* Remove unused variables and methods
* Remove trailing ws
@github-actions github-actions bot added the deploy-agent Includes changes to deploy-agent label Jun 3, 2024
@osoriano osoriano marked this pull request as ready for review June 3, 2024 18:02
@osoriano osoriano requested a review from a team as a code owner June 3, 2024 18:02
@osoriano osoriano merged commit c6f4497 into pinterest:master Jun 3, 2024
8 checks passed
@osoriano osoriano deleted the osoriano/lint-deploy-agent branch June 3, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy-agent Includes changes to deploy-agent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants