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.14.tar.gz (4.3 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.14-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scm_kit-0.0.14.tar.gz
  • Upload date:
  • Size: 4.3 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.14.tar.gz
Algorithm Hash digest
SHA256 5ea138107815f4b9f94efd10416be3466174010271384a9ab7c6060683d06319
MD5 0c4b9183674fc16c281508997e42b4c1
BLAKE2b-256 b7174df05745fe155c575b1747e35605a1453bb57a09eed31884daa3c8ceb387

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scm_kit-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 d34093f7b52a0c6cb57a4ec5549da2cb6d3856bab6d75e897d14026ef7c3e282
MD5 3239c02c8e49a1d11ec7e157d8190c63
BLAKE2b-256 d39671640d4753ec8edc306ceb967acebb5bde66a2bbaac854b968b4faceb353

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