ansys / pydpf-core

Data Processing Framework - Python Core
http://dpf.docs.pyansys.com/
MIT License
68 stars 25 forks source link

feat: migrate to Ruff for code linting and formatting #1727

Closed jorgepiloto closed 2 months ago

jorgepiloto commented 2 months ago

This pull-request drops support for black, isort, and flake in favor of Ruff, which contains all previous tools and more!

This linter and formatter is really fast for big projects. Its rules are able to identify common issues and format files in just a few milliseconds.

This pull-request is related with #1722.

jorgepiloto commented 2 months ago

As discussed in private, we will enable step by step the different rules for better fixing any issues. Despite the rules being deactivated, Ruff formatter still provides all current capabilities. Just see the rules as "extras" or "plugins".

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 92.85714% with 3 lines in your changes missing coverage. Please review.

Project coverage is 87.05%. Comparing base (c4c0e85) to head (0e41978).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1727 +/- ## ========================================== + Coverage 85.67% 87.05% +1.37% ========================================== Files 83 83 Lines 9937 9937 ========================================== + Hits 8514 8651 +137 + Misses 1423 1286 -137 ```