Skip to content

Format Java files#11

Merged
amaksimo merged 2 commits into
mainfrom
dev/frankcom/format-java
Jan 28, 2026
Merged

Format Java files#11
amaksimo merged 2 commits into
mainfrom
dev/frankcom/format-java

Conversation

@danielfrankcom

Copy link
Copy Markdown
Contributor

This PR applies auto-formatting to Java files, in preparation for an upcoming change to the pre-commit checks.

We were previously enforcing formatting for the other subprojects, so I am combining those checks to run at the root level. I've split this change out to make the final diff smaller and isolate formating-only changes. There should be no functional difference before/after.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@danielfrankcom danielfrankcom requested a review from a team as a code owner January 28, 2026 21:41
@danielfrankcom danielfrankcom marked this pull request as draft January 28, 2026 21:45
@danielfrankcom

Copy link
Copy Markdown
Contributor Author

Looks like there is a competing format somewhere in the build, will try to figure out which it uses and more that to the pre-commit checks if possible.

@danielfrankcom

Copy link
Copy Markdown
Contributor Author

There was a formatting plugin used by only the Hibernate example, but it didn't apply to the dialect code. I've removed it since we are now formatting at the top level so it is unnecessary for the example to have a dedicated plugin. Conflict should be resolved.

@danielfrankcom danielfrankcom marked this pull request as ready for review January 28, 2026 21:55
@amaksimo amaksimo merged commit f5b4afe into main Jan 28, 2026
12 checks passed
@amaksimo amaksimo deleted the dev/frankcom/format-java branch January 28, 2026 22:40
danielfrankcom added a commit that referenced this pull request Jan 28, 2026
This PR consolidates development tooling and CI workflows from the
individual project repos into a monorepo-compatible format at the top
level.

### Changes

Pre-commit hooks (`.pre-commit-config.yaml`)
- Added root-level pre-commit config covering all projects
- Python: `ruff` (lint + format), `pyright` (sqlalchemy, tortoise-orm
only)
- Java: Google Java formatter
- YAML: prettier
- GitHub Actions: actionlint
- Secrets: gitleaks
- Removed per-project `.pre-commit-config.yaml` files (sqlalchemy,
tortoise-orm)

CI workflows
- Added pre-commit workflow to run pre-commit checks
- Removed redundant lint jobs from Python CI workflows (now handled by
pre-commit workflow)
- Added build step to sqlalchemy and tortoise-orm CI workflows
- Added uv lock --check to all Python CI workflows to catch out-of-sync
lock files

Consolidated files
- Moved `LICENSE_HEADER.txt` to repo root, removed per-project copies
- Moved `.mise.toml` to repo root, removed per-project copies
- Added pre-commit setup instructions to `CONTRIBUTING.md`

This PR depends on #10, #11, and #12 to make the checks pass. Once those
are merged I will mark this as ready for review. Until then, the checks
will fail (as they are designed to do).

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
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