Skip to content

chore: implement automated linting and formatting#2

Merged
yoonheeh merged 1 commit into
mainfrom
feat/add-auto-formatter
Dec 30, 2025
Merged

chore: implement automated linting and formatting#2
yoonheeh merged 1 commit into
mainfrom
feat/add-auto-formatter

Conversation

@yoonheeh
Copy link
Copy Markdown
Owner

Changelog

  • Adds .pre-commit-config.yaml with Ruff and Clang-Format hooks.
  • Adds pyproject.toml to configure Ruff (88 char line limit).
  • Adds GitHub Action (.github/workflows/lint.yml) for CI style validation.
  • Applies project-wide formatting and fixes all linting issues in Python and C++.
  • Hardens package structure with properly defined all in init.py.

Testing

yoonhee@yoonhee:~/developments/rosbpf$ pre-commit run --all-files
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
check for added large files..............................................Passed
ruff (legacy alias)......................................................Passed
ruff format..............................................................Passed
clang-format.............................................................Passed

Changelog
==
- Adds .pre-commit-config.yaml with Ruff and Clang-Format hooks.
- Adds pyproject.toml to configure Ruff (88 char line limit).
- Adds GitHub Action (.github/workflows/lint.yml) for CI style validation.
- Applies project-wide formatting and fixes all linting issues in Python and C++.
- Hardens package structure with properly defined __all__ in __init__.py.

Testing
==
```
yoonhee@yoonhee:~/developments/rosbpf$ pre-commit run --all-files
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...............................................................Passed
check for added large files..............................................Passed
ruff (legacy alias)......................................................Passed
ruff format..............................................................Passed
clang-format.............................................................Passed
```
@yoonheeh yoonheeh self-assigned this Dec 30, 2025
@yoonheeh yoonheeh merged commit fc7c634 into main Dec 30, 2025
1 check passed
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