
Security News
Knip Hits 500 Releases with v5.62.0, Improving TypeScript Config Detection and Plugin Integrations
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
This guide outlines the structure and tools commonly used in Python package development, with a focus on managing dependencies, testing, and configuration.
requirements.txt
requirements_dev.txt
setup.cfg
setuptools
to define package metadata and installation behavior.pyproject.toml
setup.cfg
.setuptools
.Framework | Purpose |
---|---|
pytest | Simple and powerful testing tool |
unittest | Built-in Python testing framework |
robotframework | For acceptance testing |
selenium | UI/browser testing |
behave | BDD (Behavior Driven Development) |
doctest | Test code embedded in docstrings |
pylint
– Comprehensive lintingflake8
– Combines:
pycodestyle
(PEP8 checks)pyflakes
(error detection)mccabe
(complexity checking)tox
tox
?tox
Works:virtualenv
tox
vs others:tox.ini
[tox]
envlist = py38, py39, lint
[testenv]
deps =
pytest
commands =
pytest tests/
[testenv:lint]
deps =
flake8
commands =
flake8 package_name/
FAQs
A python package for connecting with database.
We found that mongodb-connect-ha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Knip hits 500 releases with v5.62.0, refining TypeScript config detection and updating plugins as monthly npm downloads approach 12M.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.