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

Cleanup linters and CI tools #382

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

joselsegura
Copy link
Collaborator

Description

  • black was not used for ages in CI, ruff can be used for formatting too
  • flake8 is overseeded by ruff
  • pydocstyle was deprecated in favour of ruff, that we are already using.
  • Creating a new category of optional deps for testing
  • Fix ruff configuration warning
  • Adding ruff to pre-commit, just check

Type of change

  • CI configuration

Testing steps

Tested locally with pre-commit

Checklist

  • pre-commit run -a passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

@joselsegura joselsegura force-pushed the linters_cleanup branch 3 times, most recently from 2101f25 to 863b5de Compare January 13, 2025 07:53
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.92%. Comparing base (3c62e61) to head (69c9b58).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #382      +/-   ##
==========================================
+ Coverage   85.82%   85.92%   +0.10%     
==========================================
  Files          28       30       +2     
  Lines        1199     1265      +66     
==========================================
+ Hits         1029     1087      +58     
- Misses        170      178       +8     

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

.pre-commit-config.yaml Outdated Show resolved Hide resolved
.github/workflows/linters.yml Show resolved Hide resolved
- black was not used for ages in CI, ruff can be used for formatting too
- flake8 is overseeded by ruff
- pydocstyle was deprecated in favour of ruff, that we are already using.
- Creating a new category of optional deps for testing
- Fix ruff configuration warning
- Adding ruff to pre-commit, just check
- Adapted tox configuration
@joselsegura joselsegura merged commit 77a0c6c into RedHatInsights:main Jan 13, 2025
11 checks passed
@joselsegura joselsegura deleted the linters_cleanup branch January 13, 2025 10:36
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.

4 participants