Skip to content

chore: add CODEOWNERS and .editorconfig - #173

Merged
uniqueg merged 1 commit into
devfrom
chore/codeowners-editorconfig
Oct 22, 2026
Merged

uniqueg merged 1 commit into
devfrom
chore/codeowners-editorconfig

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #171

  • .github/CODEOWNERS: * @uniqueg, with a comment on how to add owners for paths; identical to FOCA's (chore: add CODEOWNERS and .editorconfig foca#405).
  • .editorconfig: identical to FOCA's (UTF-8, LF, final newline, trimmed trailing whitespace; 4 spaces for Python and TOML, 2 for YAML, JSON and Helm templates; max_line_length = 88 for Python as ruff's line-length; Markdown keeps trailing whitespace because two spaces are a hard line break), plus one section that exempts the vendored GA4GH specs (cloud_registry/api/20201108.*), as the pre-commit hooks do.
  • TOML uses 4 spaces, not 2 as the issue suggested, because pyproject.toml indents arrays with 4 spaces and nothing should be reformatted.
  • cloud_registry/__init__.py had the repository's only CRLF line ending; converted to LF so editors don't rewrite it.
  • Markdown: here the trailing-whitespace hook trims Markdown too (FOCA's keeps line breaks); no Markdown file has trailing whitespace, so the shared setting changes nothing and the hook still enforces the stricter rule.

Light lane: new configuration files plus a line-ending fix (no code, CI, secrets or permissions), so the reviewer subagents and the Sourcery wait are skipped.

Verification

  • editorconfig-checker v3.4.0 (release binary, checksum verified) with -disable-max-line-length: clean except two lines of an inline YAML string in tests/helm.py (text content, not code indentation).
  • CI: all checks pass.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Add repository contributor configuration and normalize the remaining inconsistent line ending.

Enhancements:

  • Add repository-wide editor settings and ownership guidance through .editorconfig and CODEOWNERS.
  • Normalize the package initializer's line ending to LF.

Request reviews from @uniqueg for all files and give editors the
project's basic formatting (UTF-8, LF, final newline, no trailing
whitespace except in Markdown; 4 spaces for Python and TOML, 2 for
YAML, JSON and Helm templates; line length 88 as in ruff), as in FOCA.
The vendored GA4GH specifications are exempt, as in the pre-commit
hooks. Convert the CRLF line ending in `cloud_registry/__init__.py`,
the only one in the repository, to LF.

Closes #171

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds shared editor configuration and default CODEOWNERS metadata, while normalizing the repository's only CRLF line ending; the changes are configuration-only and preserve existing project formatting conventions.

File-Level Changes

Change Details Files
Adds repository-wide editor formatting rules aligned with existing tooling and project conventions.
  • Sets UTF-8 encoding, LF endings, final newlines, and trailing-whitespace handling.
  • Defines indentation for Python/TOML, YAML, JSON, and Helm templates.
  • Aligns Python maximum line length with Ruff and exempts vendored GA4GH specifications.
  • Preserves Markdown hard-line-break behavior while matching the stricter pre-commit hook configuration.
.editorconfig
Establishes default code ownership and documents how to add path-specific owners.
  • Assigns all paths to @uniqueg.
  • Adds guidance for defining owners for specific paths.
.github/CODEOWNERS
Normalizes the repository's sole CRLF file to LF without changing its content.
  • Converts the package initializer line ending to LF.
cloud_registry/__init__.py

Assessment against linked issues

Issue Objective Addressed Explanation
#171 Add .github/CODEOWNERS assigning * to @uniqueg and explaining how to add path-specific owners. ✅
#171 Add a root .editorconfig matching the requested formatting and existing tooling, without requiring existing files to be reformatted. ❌ The PR uses 4-space indentation for TOML instead of the requested 2 spaces. It also preserves Markdown trailing spaces for hard line breaks while acknowledging that the pre-commit hook trims them; it does not document switching hard breaks to backslashes. These leave the requested settings and tooling inconsistent.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8d06ee8) to head (0c3cbde).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #173   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          737       737           
=========================================
  Hits           737       737           

☔ View full report in Codecov by Harness.
📢 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.

@uniqueg
uniqueg marked this pull request as ready for review October 22, 2026 20:17

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 670702b into dev Oct 22, 2026
15 checks passed
@uniqueg
uniqueg deleted the chore/codeowners-editorconfig branch October 22, 2026 20:25
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.

chore: add CODEOWNERS and .editorconfig

1 participant