Skip to content

chore: add CODEOWNERS and .editorconfig - #405

Merged
uniqueg merged 2 commits into
devfrom
chore/codeowners-editorconfig
Oct 22, 2026
Merged

uniqueg merged 2 commits into
devfrom
chore/codeowners-editorconfig

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Resolves #402 (merged into dev, so the issue is closed by hand).

  • .github/CODEOWNERS: * @uniqueg, with a comment on how to add owners for paths.
  • .editorconfig: UTF-8, LF, final newline, trimmed trailing whitespace; 4 spaces for Python and TOML, 2 for YAML, JSON and Helm templates (.tpl); max_line_length = 88 for Python (ruff's line-length). Markdown keeps trailing whitespace, matching the trailing-whitespace hook's --markdown-linebreak-ext=md (docs/access-control.md uses a two-space break).
  • TOML uses 4 spaces, not 2 as the issue suggested, because pyproject.toml indents arrays with 4 spaces and nothing should be reformatted.
  • The same files go to cloud-registry (chore: add CODEOWNERS and .editorconfig cloud-registry#171); cloud-registry's .editorconfig adds one section that exempts its vendored GA4GH specs, as its pre-commit hooks do.

Light lane: new configuration files only (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) on the whole repo with -disable-max-line-length: the only findings are continuation lines inside docstrings and multi-line strings (foca/errors/exceptions.py, foca/utils/urls.py, YAML in charts/foca-common/tests/test_templates.py, ...). Those are text content, not code indentation; editors don't reindent them. No files with CRLF line endings, missing final newlines, tabs or trailing whitespace (other than the Markdown line break).
  • Long lines (36) are strings and URLs that ruff allows too; max_line_length only sets the editor's ruler.
  • CI: all checks pass.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Enhancements:

  • Add repository-wide editor settings and ownership guidance through .editorconfig and CODEOWNERS.

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

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

This configuration-only PR adds CODEOWNERS coverage and an EditorConfig policy, with formatting rules aligned to the existing Ruff, pre-commit, and repository conventions; verification reports no actionable formatting issues and CI passes.

File-Level Changes

Change Details Files
Adds repository-wide ownership metadata and editor formatting rules.
  • Assigns all paths to the default @uniqueg owner and documents path-specific ownership syntax.
  • Defines UTF-8, LF, final-newline, and trailing-whitespace defaults.
  • Configures language-specific indentation for Python/TOML, YAML, JSON, and Helm templates.
  • Sets Python’s 88-character ruler and preserves Markdown trailing spaces for line breaks.
.github/CODEOWNERS
.editorconfig

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 (96d5794) to head (be4a01e).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #405   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         2510      2510           
=========================================
  Hits          2510      2510           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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 is free for open source - if you like our reviews please consider sharing them ✨

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

Sourcery assessment

Approved.

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