Skip to content

Add linting rules in CI using Ruff#657

Merged
enricostragiotti merged 26 commits intomasterfrom
ruff_newrules
Nov 18, 2025
Merged

Add linting rules in CI using Ruff#657
enricostragiotti merged 26 commits intomasterfrom
ruff_newrules

Conversation

@enricostragiotti
Copy link
Copy Markdown
Contributor

@enricostragiotti enricostragiotti commented Nov 13, 2025

Summary of Changes

See #609 and #634

Now in codacy we are not using pylint anymore

Additional changes

  • Separated Ruff configuration:
    The Ruff configuration (ruff.toml) has been moved out of pyproject.toml to keep things clean and readable, as the configuration is expected to grow over time.

Related Issues

closes #610 and closes #611

New Dependencies

Ruff version 0.14.4

Enrico Stragiotti and others added 24 commits February 25, 2025 10:30
…T_FBT_FA_PTH

Ruff newrules UP RET FBT FA PTH
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 91.86257% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.90%. Comparing base (45403df) to head (484d903).

Files with missing lines Patch % Lines
src/fastoad/gui/optimization_viewer.py 74.19% 6 Missing and 2 partials ⚠️
src/fastoad/module_management/_bundle_loader.py 77.14% 8 Missing ⚠️
src/fastoad/cmd/api.py 80.64% 4 Missing and 2 partials ⚠️
src/fastoad/gui/variable_viewer.py 75.00% 3 Missing and 1 partial ⚠️
...oad/io/xml/resources/remove_duplicate_variables.py 0.00% 4 Missing ⚠️
...ces/mission/segments/registered/altitude_change.py 75.00% 1 Missing and 2 partials ⚠️
src/fastoad/_utils/strings.py 0.00% 2 Missing ⚠️
src/fastoad/_utils/files.py 75.00% 0 Missing and 1 partial ⚠️
src/fastoad/exceptions.py 50.00% 1 Missing ⚠️
src/fastoad/io/configuration/configuration.py 96.96% 1 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #657      +/-   ##
==========================================
+ Coverage   91.65%   91.90%   +0.25%     
==========================================
  Files          99       99              
  Lines        6265     6249      -16     
  Branches      821      809      -12     
==========================================
+ Hits         5742     5743       +1     
+ Misses        353      340      -13     
+ Partials      170      166       -4     

☔ 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.

@enricostragiotti enricostragiotti marked this pull request as ready for review November 13, 2025 14:50
@enricostragiotti
Copy link
Copy Markdown
Contributor Author

Hello @florentLutz and @esnguyenvan, I completed the assembly of the two linting rules iterations. I do not think that we should redo any review, so this PR is just FYI.

Copy link
Copy Markdown
Contributor

@esnguyenvan esnguyenvan left a comment

Choose a reason for hiding this comment

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

OK, let's give it a try!

@enricostragiotti
Copy link
Copy Markdown
Contributor Author

I'll merge this one just after we merged #649

@enricostragiotti enricostragiotti merged commit 99948d4 into master Nov 18, 2025
13 checks passed
@enricostragiotti enricostragiotti deleted the ruff_newrules branch November 18, 2025 13:19
@enricostragiotti enricostragiotti changed the title Ruff newrules Add linting rules in CI using Ruff Nov 18, 2025
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.

Use Ruff for Consistent Code Quality Checks in Codacy Lack of Local Code Quality Checks Before Codacy Execution

3 participants