tefra / xsdata

Naive XML & JSON Bindings for python
https://xsdata.readthedocs.io
MIT License
310 stars 56 forks source link

fix: Run Ruff on package directories rather than files #1049

Closed SrirachaHorse closed 1 month ago

SrirachaHorse commented 1 month ago

📒 Description

Run Ruff on package directories rather than individual files, to avoid large schema sets exceeding the character limits when on Windows.

Resolves #1048

🔗 What I've Done

Updates the DataclassGenerator.render() method to collect package directories rather than individual files, to be passed to the ruff_code() method.

Also adds a warning to the Configuration page of the documentation to indicate that Ruff will be run on any file in the package directory.

💬 Comments

A place to write any comments to the reviewer.

🛫 Checklist

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (cbec5fa) to head (4322332).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1049 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 115 115 Lines 9223 9222 -1 Branches 2178 2178 ========================================= - Hits 9223 9222 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud