Skip to content

Deprecate the pylint+safety CI tests job #338

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

CasperWA
Copy link
Collaborator

The latest safety CLI has a dedicated GitHub Action one can use instead (the 'safety check' has been deprecated and 'safety scan' requires a user).
Pylint is not longer being used in general in favor of ruff.

AI Summary

This pull request deprecates the pylint and safety jobs in favor of using pre-commit hooks and a dedicated GitHub Action for safety. It updates configuration files and documentation to reflect this change, including setting the default values for these jobs to false and marking related inputs as deprecated.

Deprecation of pylint and safety jobs:

Documentation updates:

  • docs/workflows/ci_tests.md: Added a deprecation notice for the pylint and safety jobs, recommending the use of pre-commit hooks and the safety GitHub Action.
  • docs/workflows/ci_tests.md: Updated the default values for run_pylint and run_safety to false in the parameter table and marked related inputs as deprecated. [1] [2]

The latest safety CLI has a dedicated GitHub Action one can use instead
(the 'safety check' has been deprecated and 'safety scan' requires a
user).
Pylint is not longer being used in general in favor of ruff.
@CasperWA CasperWA requested a review from Copilot April 22, 2025 08:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR deprecates the pylint and safety CI test jobs in favor of using pre-commit hooks and a dedicated GitHub Action for safety.

  • Disable the execution of pylint and safety tests by updating default values to false in workflow files.
  • Update documentation to include a deprecation notice and mark related parameters as deprecated.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
docs/workflows/ci_tests.md Added deprecation warnings and updated parameter defaults.
.github/workflows/ci_tests.yml Changed default values for run_pylint and run_safety to false.
.github/workflows/_local_ci_tests.yml Set run_safety to false and removed outdated commented options.
Comments suppressed due to low confidence (1)

docs/workflows/ci_tests.md:244

  • [nitpick] There appear to be duplicate parameter definitions for deprecated CI jobs in this file. Consider consolidating these entries into a single table to improve clarity for users.
| `run_pylint` | **_Deprecated_** Run the `pylint` test job. | No | `false` | _boolean_ |

Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.37%. Comparing base (cdd0d97) to head (ce0ce70).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #338   +/-   ##
=======================================
  Coverage   85.37%   85.37%           
=======================================
  Files          12       12           
  Lines         937      937           
=======================================
  Hits          800      800           
  Misses        137      137           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CasperWA CasperWA requested a review from Treesarj April 22, 2025 09:10
@CasperWA CasperWA enabled auto-merge (squash) April 22, 2025 09:11
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