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

setup ruff as a flake8 replacement #164

Merged
merged 6 commits into from
Mar 16, 2024
Merged

setup ruff as a flake8 replacement #164

merged 6 commits into from
Mar 16, 2024

Conversation

odrling
Copy link
Contributor

@odrling odrling commented Mar 16, 2024

ruff runs pretty fast, which is nice when used as a pre-commit hook.

It also implements more checks that can be selected as needed, in this
PR I add the bugbear (B) checks which were not present in the
previous configuration and fix issues detected by it.

odrling added 2 commits March 16, 2024 00:49
ruff runs pretty fast, which is nice when used as a pre-commit hook.

It also implements more checks that can be selected as needed, in this
commit I add the bugbear (B) checks which were not present in the
previous configuration.
The first one (not binding a loop variable in a local function) can
actually result in bugs. Others are mostly minor changes.
Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.69%. Comparing base (05b6fdf) to head (d4a64c8).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #164   +/-   ##
========================================
  Coverage    98.69%   98.69%           
========================================
  Files           73       73           
  Lines         1834     1836    +2     
========================================
+ Hits          1810     1812    +2     
  Misses          24       24           

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

@Neraste
Copy link
Member

Neraste commented Mar 16, 2024

Nice job, please fix ruff warnings during tests and set ruff version by interval in pyproject.toml.

@Neraste Neraste merged commit 7b916ae into develop Mar 16, 2024
18 checks passed
@Neraste Neraste deleted the ruff branch March 16, 2024 14:32
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