Network helpers for HTTP(S) and FTP downloads, with convenience JSON and ZIP readers.
pip install sc4netPlease report vulnerabilities according to SECURITY.md.
git clone git@github.com:kelsoncm/sc4.git ~/projetos/PESSOAL/sc4net
code ~/projetos/PESSOAL/sc4netThis repository uses pre-commit to run quality checks before each commit and coverage regression checks before each push.
Setup:
python -m venv .venv
.venv\bin\activate
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip uv
uv pip install --upgrade -e ".[dev]"
pre-commit install
pre-commit install --hook-type pre-pushRun manually:
pre-commit run --all-files
pre-commit run --hook-stage pre-push --all-filesHooks:
- pre-commit:
black,isort,bandit,flake8(withflake8-bandit) - pre-push:
- Runs
pytest --cov=sc4net --cov-report=xmlto producecoverage.xml pytest-coverage-gatereadscoverage.xml, compares against.coverage-baseline(2 decimal places), blocks the push on regression and updates the baseline on improvement
- Runs
- GitHub Actions only:
semgrepSAST