Skip to content

chore: linting and static checks for pynumaflow-lite#346

Merged
vigith merged 1 commit intomainfrom
add-py-lint
Mar 29, 2026
Merged

chore: linting and static checks for pynumaflow-lite#346
vigith merged 1 commit intomainfrom
add-py-lint

Conversation

@vaibhavtiwari33
Copy link
Copy Markdown
Contributor

I'll mark where I've made manual changes to fix issues flagged by the ruff analyzer, rest all are fixed by the formatter.

Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.68%. Comparing base (5c7d07f) to head (1bbdd22).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #346   +/-   ##
=======================================
  Coverage   92.68%   92.68%           
=======================================
  Files          67       67           
  Lines        3513     3513           
  Branches      229      229           
=======================================
  Hits         3256     3256           
  Misses        193      193           
  Partials       64       64           

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

flushing sorted data when the watermark advances.
"""

import signal
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

review requested
manual change: import moved to the top

Comment on lines +1 to +2
from . import pynumaflow_lite # type: ignore[attr-defined] # Rust extension, resolved at runtime
from .pynumaflow_lite import * # noqa: F403 # Rust extension; exports resolved at runtime
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

review requested
manual change:

  • warning suppression for imports
  • explicitly import from . import pynumaflow_lite

Comment on lines -3 to -4
def __getattr__(name: str) -> _typeshed.Incomplete: ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

review requested
manual change: moved after imports

Comment on lines +7 to +8

import signal
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

review requested
manual change: import moved to the top

Comment on lines +46 to +56
py-fmt:
uv run black pynumaflow_lite/ tests/ manifests/

py-lint: py-fmt
uv run ruff check --fix .

fmt:
cargo fmt --all

.PHONY: lint
lint: test-fmt clippy
lint: test-fmt clippy py-lint
Copy link
Copy Markdown
Contributor Author

@vaibhavtiwari33 vaibhavtiwari33 Mar 28, 2026

Choose a reason for hiding this comment

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

review requested
manual change: makefile lint command updated to include python linting

Comment on lines +19 to +21
"black>=24.8.0",
"pytest>=8.3.5",
"ruff>=0.15.8",
Copy link
Copy Markdown
Contributor Author

@vaibhavtiwari33 vaibhavtiwari33 Mar 28, 2026

Choose a reason for hiding this comment

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

review requested
manual change: These packages were added as dev dependencies for python linting

@vaibhavtiwari33 vaibhavtiwari33 changed the title chore: [pynumaflow-lite] linting and static checks for pynumaflow-lite chore: linting and static checks for pynumaflow-lite Mar 28, 2026
@vaibhavtiwari33 vaibhavtiwari33 marked this pull request as ready for review March 28, 2026 20:10
@vigith vigith merged commit 952b302 into main Mar 29, 2026
11 checks passed
@vigith vigith deleted the add-py-lint branch March 29, 2026 15:46
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.

2 participants