Skip to content

Conversation

@gerlero
Copy link
Owner

@gerlero gerlero commented Dec 11, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Ruff linter errors across the codebase by addressing import ordering, naming conventions, documentation formatting, and code style issues. The changes standardize the code to comply with modern Python linting rules.

Key Changes

  • Reordered imports to follow standard conventions (standard library, third-party, local)
  • Added noqa comments for intentional rule violations (e.g., FBT003 for boolean positional arguments, N806 for capitalized variable names, PLR2004 for magic numbers)
  • Standardized naming in documentation from "Brooks–Corey" to "Brooks and Corey" and "Van Genuchten–Mualem" to "Van Genuchten"
  • Replaced en-dashes with hyphens in citations for ASCII compatibility
  • Removed Spanish comments from example files
  • Updated typing.Sequence to collections.abc.Sequence for Python 3.9+ compatibility

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_solve.py Import reordering, reference citation formatting, removed pytest.importorskip for fronts module
tests/test_neural/test_validity/test_vangenuchten.py Import reordering, added noqa comments for magic numbers
tests/test_neural/test_validity/test_letd.py Import reordering, added noqa comments for magic numbers
tests/test_neural/test_grenoblesand.py Import reordering, added noqa comments for variable naming and boolean positional args
tests/test_neural/test_exact.py Import reordering, added blank line and noqa comments
tests/test_inverse.py Updated reference citations with hyphens instead of en-dashes
tests/test_finite.py Removed unreferenced References section
src/frontx/models.py Simplified module docstring, updated "Brooks–Corey" to "Brooks and Corey"
src/frontx/finite.py Updated documentation text, removed all export list, removed blank line
src/frontx/examples/validity.py Removed Spanish comments, updated imports, standardized naming
src/frontx/examples/neural/validity/vangenuchten.py Removed ruff directive, added noqa comments, updated documentation
src/frontx/examples/neural/validity/letd.py Removed ruff directive and unused import, added noqa comments
src/frontx/examples/neural/grenoblesand.py Import reordering, added noqa comments, updated formatting
src/frontx/examples/neural/exact.py Removed ruff directive comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gerlero gerlero merged commit 4f783a0 into main Dec 11, 2025
14 checks passed
@gerlero gerlero deleted the ruff branch December 11, 2025 01:57
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