Skip to content

Commit 019098b

Browse files
authored
Merge pull request #184 from contentstack/main
chore: back-merge main into development
2 parents 946d929 + 3a58ab1 commit 019098b

7 files changed

Lines changed: 16 additions & 6 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| Build | `setuptools` / `setup.py`; package `contentstack_management` |
1818
| HTTP | `requests`, `requests-toolbelt`, `urllib3` |
1919
| Tests | `pytest``tests/integration` (live e2e / sanity, dynamic stack), `tests/unit`, `tests/mock`, `tests/api` (legacy, superseded by `tests/integration`) |
20-
| Lint / coverage | `pylint`, `coverage` (see `requirements.txt`) |
20+
| Lint / coverage | `pylint`, `coverage` (see `requirements-dev.txt`) |
2121
| Secrets / hooks | Talisman, Snyk (see `README.md` development setup) |
2222

2323
## Source layout

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# CHANGELOG
22

33
## Content Management SDK For Python
4+
---
5+
## v1.11.2
6+
7+
#### Date: 10 August 2026
8+
9+
- Moved `pylint` from `requirements.txt` to `requirements-dev.txt` to resolve Snyk GPL-2.0 license flag (DX-8256). `pylint` is a static analysis tool used only during development and CI; it is not distributed as part of the production package.
10+
411
---
512
## v1.11.1
613

contentstack_management/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_contentstack_endpoint(region='us', service='', omit_https=False):
102102
__author__ = 'dev-ex'
103103
__status__ = 'debug'
104104
__region__ = 'na'
105-
__version__ = '1.11.1'
105+
__version__ = '1.11.2'
106106
__host__ = 'api.contentstack.io'
107107
__protocol__ = 'https://'
108108
__api_version__ = 'v3'

requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Development-only dependencies — not shipped in the production package.
2+
# Keep linting/tools (e.g. pylint) here so production scans can exclude them.
3+
-r requirements.txt
4+
pylint>=2.0.0

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ python-dotenv>=1.2.2
33
setuptools>=83.0.0
44
requests>=2.33.0,<3.0.0
55
urllib3>=2.7.0,<3.0.0
6-
pylint>=2.0.0
76
requests-toolbelt>=1.0.0,<2.0.0
87
pyotp==2.9.0
98
packaging>=24.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_author_email(package):
7272
"urllib3 >= 2.7.0,<3.0.0",
7373
],
7474
extras_require={
75-
"dev": ["pytest>=7.0", "twine>=4.0.2", "packaging>=24.0", "dotenv>=0.0.5"],
75+
"dev": ["pytest>=7.0", "twine>=4.0.2", "packaging>=24.0", "dotenv>=0.0.5", "pylint>=2.0.0"],
7676
},
7777
python_requires=">=3.9",
7878
)

skills/dev-workflow/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: Use for install, pytest suites, versioning, pylint, hooks, and PR b
1919

2020
### Before a PR
2121

22-
1. **Install**`pip install -e ".[dev]"` or install **`requirements.txt`** plus **pytest** / **pytest-cov** as needed.
22+
1. **Install**`pip install -e ".[dev]"` then `pip install -r requirements-dev.txt` for linting tools.
2323
2. **`pytest tests/unit/`** — required baseline (matches CI **`coverage run -m pytest tests/unit/`**).
2424
3. **API tests**`pytest tests/api/` when your change affects live CMA behavior; configure **`.env`** per **`tests/cred.py`**. Never commit tokens.
2525
4. **Mock tests**`pytest tests/mock/` when extending mocked HTTP or fixtures.
@@ -30,7 +30,7 @@ description: Use for install, pytest suites, versioning, pylint, hooks, and PR b
3030

3131
### Tooling
3232

33-
- **pylint** is listed in **`requirements.txt`**; follow existing style in touched files.
33+
- **pylint** is listed in **`requirements-dev.txt`**; follow existing style in touched files.
3434
- **Husky / Talisman / Snyk** — see **README.md** for local hook setup.
3535

3636
### Pull requests

0 commit comments

Comments
 (0)