Skip to content

Add ruff default folder#889

Merged
Gorkowski merged 2 commits intomainfrom
add-ruff-default-folder
Jan 19, 2026
Merged

Add ruff default folder#889
Gorkowski merged 2 commits intomainfrom
add-ruff-default-folder

Conversation

@Gorkowski
Copy link
Collaborator

No description provided.

@Gorkowski Gorkowski marked this pull request as ready for review January 19, 2026 13:36
Copilot AI review requested due to automatic review settings January 19, 2026 13:36
@github-actions
Copy link

PR Preview Action v1.8.0

🚀 View preview at
https://uncscode.github.io/particula/pr-preview/pr-889/

Built to branch gh-pages at 2026-01-19 13:38 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@Gorkowski Gorkowski merged commit 490638e into main Jan 19, 2026
11 checks passed
@Gorkowski Gorkowski deleted the add-ruff-default-folder branch January 19, 2026 13:38
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 configures ruff's source directory and applies automated formatting to remove blank lines between import groups in test files. It also adds a mypy exclusion for the "trees" directory and includes an opencode workflow file in the .trash directory.

Changes:

  • Added ruff configuration for src and include patterns in pyproject.toml
  • Removed blank lines between imports in numerous test files across the codebase (automated formatting)
  • Added "trees/.*" to mypy exclusion list
  • Added opencode workflow file to .trash directory

Reviewed changes

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

Show a summary per file
File Description
pyproject.toml Added ruff src/include configuration and mypy trees exclusion
particula/util/tests/*.py Removed blank lines between import groups (multiple files)
particula/tests/*.py Removed blank lines between import groups (multiple files)
particula/particles//tests/.py Removed blank lines between import groups (multiple files)
particula/gas//tests/.py Removed blank lines between import groups (multiple files)
particula/dynamics//tests/.py Removed blank lines between import groups (multiple files)
particula/activity/tests/*.py Removed blank lines between import groups (multiple files)
particula/equilibria/tests/*.py Removed blank lines between import groups
particula/integration_tests/*.py Removed blank lines between import groups
.trash/.github/workflows/opencode.yml Added new workflow file to trash directory

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

Comment on lines 3 to +5
import numpy as np
import pytest

import particula.util.convert_units as convert_units
import pytest
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

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

The import order has been changed so that particula.util.convert_units is imported before pytest. According to PEP 8 and common Python conventions, standard library imports (like pytest which is a third-party package) should be separated from first-party imports. The correct order should be:

  1. Standard library imports
  2. Third-party imports (pytest)
  3. First-party imports (particula.util.convert_units)

The imports should be reordered to place pytest before particula.util.convert_units, with a blank line separating third-party from first-party imports.

Copilot uses AI. Check for mistakes.
Comment on lines +59 to +60
src = ["particula"]
include = ["particula/**/*.py"]
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

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

The include pattern is redundant with the src configuration. When src = ["particula"] is set, ruff already defaults to checking Python files in that source directory. The explicit include = ["particula/**/*.py"] pattern is unnecessary and could potentially cause confusion or conflicts with the default behavior. Consider removing this line to simplify the configuration.

Copilot uses AI. Check for mistakes.
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