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

Use ruff to replace bandit, flake8 and plugins, isort, pydocstyle, pyupgrade #174

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 12, 2023

Ruff supports over 500 lint rules and can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing (in Rust) tens or hundreds of times faster than any individual tool.

The ruff Action uses minimal steps to run in ~10 seconds, rapidly providing intuitive GitHub Annotations to contributors.

image

Fixes #173

@cclauss cclauss force-pushed the ruff branch 9 times, most recently from 90bc9a5 to 85aa30d Compare March 12, 2023 10:30
@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2023

Codecov Report

Merging #174 (2bb0d6b) into master (72c4bb8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #174      +/-   ##
==========================================
+ Coverage   95.22%   95.23%   +0.01%     
==========================================
  Files          23       23              
  Lines        1214     1217       +3     
  Branches      273      273              
==========================================
+ Hits         1156     1159       +3     
  Misses         33       33              
  Partials       25       25              
Impacted Files Coverage Δ
src/wily/commands/graph.py 100.00% <ø> (ø)
src/wily/__main__.py 95.50% <100.00%> (+0.02%) ⬆️
src/wily/commands/build.py 89.13% <100.00%> (+0.11%) ⬆️
src/wily/commands/diff.py 88.88% <100.00%> (+0.13%) ⬆️
src/wily/commands/rank.py 96.29% <100.00%> (+0.06%) ⬆️
src/wily/config.py 98.76% <100.00%> (ø)
src/wily/state.py 95.23% <100.00%> (-0.06%) ⬇️
@tonybaloney tonybaloney changed the title Use ruff to replace bandit, flake8 and plugins, isort, pydocstyle, pygrade Mar 12, 2023
Makefile Outdated Show resolved Hide resolved
@tonybaloney
Copy link
Owner

Thanks for bringing them together. +1

@tonybaloney tonybaloney merged commit e399a07 into tonybaloney:master Jul 10, 2023
19 checks passed
tonybaloney added a commit that referenced this pull request Jul 10, 2023
ruff recommended code changes from #174
@cclauss cclauss deleted the ruff branch July 10, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants