Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 2.02 KB

File metadata and controls

40 lines (26 loc) · 2.02 KB
name dev-workflow
description Use for install, pytest suites, versioning, pylint, hooks, and PR baseline in contentstack-management-python.

Development workflow – Contentstack Management Python

When to use

  • Setting up locally, opening a PR, or matching CI expectations.
  • Answering "how do we run tests?" or "what runs in CI?"

Instructions

Branches & releases

Before a PR

  1. Installpip install -e ".[dev]" or install requirements.txt plus pytest / pytest-cov as needed.
  2. pytest tests/unit/ — required baseline (matches CI coverage run -m pytest tests/unit/).
  3. API testspytest tests/api/ when your change affects live CMA behavior; configure .env per tests/cred.py. Never commit tokens.
  4. Mock testspytest tests/mock/ when extending mocked HTTP or fixtures.

Packaging

  • Bump contentstack_management/__init__.py __version__ and align setup.py versioning if release-facing.

Tooling

  • pylint is listed in requirements.txt; follow existing style in touched files.
  • Husky / Talisman / Snyk — see README.md for local hook setup.

Pull requests

  • Build passes: pytest tests/unit/ at minimum; run API / mock when your change touches those layers.
  • Follow skills/code-review/SKILL.md before merge.
  • Prefer backward-compatible public API; call out breaking changes and semver.