Skip to content

Replace black, flake8 and isort for Ruff#572

Merged
santisoler merged 36 commits intomainfrom
ruff
Sep 2, 2025
Merged

Replace black, flake8 and isort for Ruff#572
santisoler merged 36 commits intomainfrom
ruff

Conversation

@santisoler
Copy link
Copy Markdown
Member

@santisoler santisoler commented Aug 15, 2025

Remove unused packages in requirements-style.txt, environment.yml and add Ruff to them. Update the Makefile targets. Remove .flake8. Add Ruff configuration to pyproject.toml. Apply fixes to comply with Ruff rules. Replace l and m loop vars for i and j in forward modelling nested for loops. Minor fixes to a few error messages. Revert "Ignore RST299 warning in tesseroid example (#571)" (commit 5471998). Remove mutable class attributes in equivalent sources: remove mutable class attributes for dispatching the predict and jacobian kernels depending on the choice for parallelization; obtain the desired kernel as needed in the predict and jacobian methods instead.

Remove mutable class attributes for dispatching the predict and jacobian
kernels depending on the choice for parallelization. Obtain the desired
kernel as needed in the `predict` and `jacobian` methods instead.
@santisoler santisoler marked this pull request as ready for review September 2, 2025 18:36
@santisoler santisoler merged commit 4a4668e into main Sep 2, 2025
17 checks passed
@santisoler santisoler deleted the ruff branch September 2, 2025 19:07
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.

1 participant