Skip to content

Merge chore/ruff-pylint-precommit into main - #4

Open
Tokarzewski wants to merge 3 commits into
mainfrom
merge/chore-ruff-pylint-precommit
Open

Merge chore/ruff-pylint-precommit into main#4
Tokarzewski wants to merge 3 commits into
mainfrom
merge/chore-ruff-pylint-precommit

Conversation

@Tokarzewski

Copy link
Copy Markdown
Collaborator

Summary

  • Merges the chore/ruff-pylint-precommit branch (adds ruff/pylint/pre-commit tooling) into main
  • Resolved conflict in db_cli/cli.py — kept main's tested dict-based get_version() logic, layered on the branch's genuine lint fixes (import ordering, unused import removal)
  • Fixed additional lint issues on files the new ruff/pylint config flags: unused dict_to_file import, unsorted import in conftest.py, and an unnecessary else after return

Test plan

  • uv run ruff check / uv run ruff format --check — clean
  • uv run pylint db_cli — 10.00/10
  • pytest — 53 passed (verified on Python 3.10 and 3.13)
Tokarzewski and others added 3 commits June 9, 2026 17:45
Bring db-cli in line with the other db-* repos:

- add a build-system, a uv dev dependency group, and ruff + pylint config;
  add .pre-commit-config.yaml (ruff + pylint + pytest hooks) and a uv-based
  lint + test CI workflow with a private-dependency auth step (the schema is
  installed from a private repo, so CI uses a DB_SCHEMA_TOKEN secret)
- fix the broken schema integration so the package imports again: the
  package was renamed (designbuilder_schema -> db_schema) and the old
  file_to_dict/dict_to_file helpers were removed, so get_version now uses
  load_model(...).version (as validate_file already does); drop the obsolete
  sys.path hack and unused imports
- fix the genuine lint findings (unused run_async results, missing
  docstrings, intentional broad-except)

Note: the sample-dependent tests are skipped — EmptySite.xml is missing and
the checked-in Shoebox*.xml samples are malformed (lxml cannot parse them).
A valid dsbXML fixture is needed to re-enable them (tracked separately).

ruff check + format clean, pylint 10.00/10, tests pass (2 skipped); all
pre-commit hooks pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…o merge/chore-ruff-pylint-precommit

# Conflicts:
#	db_cli/cli.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant