Skip to main content

No project description provided

Project description

scm-kit

Polyglot formatting and linting toolkit. Provides two commands — scm-format and scm-lint — that auto-detect which tools to run based on the files in your repo.

Prerequisites

Usage

# Install and run via uvx:
uvx --from scm-kit scm-format
uvx --from scm-kit scm-lint
uvx --from scm-kit scm-lint -a  # lint all files, not just changed

# Or add to your Makefile:
# fmt:
# 	@uvx --from scm-kit scm-format
# lint:
# 	@uvx --from scm-kit scm-lint

What runs

Language/Files Format Lint
Go (go.mod) gofmt go vet
JS/TS/CSS/JSON (biome.json) Biome Biome
HTML, Markdown, YAML Prettier Prettier
Python (.py) Ruff (fix + format) Ruff (check + format check), Pyright
TypeScript (tsconfig.json) tsc --noEmit

Tools are invoked via npx or uvx, so they don't need to be pre-installed. Go tools are optional — skipped if not on PATH.

Each tool is skipped when no matching files or config is present, so a Python-only repo won't invoke Biome or Prettier.

Config files

Projects using scm-kit should include their own config files as needed:

  • .ruff.toml — Ruff linter config (Python)
  • biome.json — Biome formatter/linter config (JS/TS/CSS/JSON)
  • pyrightconfig.json — Pyright type-checker config (Python)

Lint flags

  • Default: Pyright checks only changed files (vs HEAD + untracked), since it is slow on large codebases. All other linters check the full tree.
  • -a / --all-files: Pyright checks all files.

Development

To test local changes before publishing, use the dev- Makefile targets. These run against the local source instead of the published package:

make dev-fmt       # format using local scm-kit
make dev-lint      # lint using local scm-kit
make dev-lint-all  # lint all files using local scm-kit

Publishing

rm -rf dist
uv build
UV_PUBLISH_TOKEN=pypi-xxxxx uv publish

Generate a token at https://pypi.org/manage/account/token/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scm_kit-0.0.12.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scm_kit-0.0.12-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file scm_kit-0.0.12.tar.gz.

File metadata

  • Download URL: scm_kit-0.0.12.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scm_kit-0.0.12.tar.gz
Algorithm Hash digest
SHA256 cb9da8ff58251d6ae12457102224fba2d2fa6013e57433a71fe50393dfbbe30d
MD5 1e4a6eec942dd9f94b31e8e0b5b01772
BLAKE2b-256 53112c22bcc9060ed660f816f487ddea117c59c1c2f25a80c03a60ba312bbb20

See more details on using hashes here.

File details

Details for the file scm_kit-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: scm_kit-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scm_kit-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 698e50e97b1fa530f3311bcc3b7d4e68962461de5d69a645670107021322f8fb
MD5 724eddf35712d1457551aa98e40419db
BLAKE2b-256 4b53b3854c5d664654203aa548aa13dcf68abc087d805d4278b1d988015890bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page