You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Josiah 741745c673
Update.
3 years ago
.gitignore Initial commit. 3 years ago
.pre-commit-config.yaml Include fixes from linter. 3 years ago
Pipfile Remove bandit; requires too much care and feeding. 3 years ago
Pipfile.lock Remove bandit; requires too much care and feeding. 3 years ago
pyproject.toml Update. 3 years ago
readme.md Update. 3 years ago

readme.md

Security Python Template

This template is used by the SecOps team to start off new projects.

Getting started

Make sure this is run inside a git repo. Install prereqs

pipenv shell
pipenv install -d isort mypy pylint pre-commit
pipenv install -d --pre black

Configure pre-commit

pre-commit install
pre-commit autoupdate

Since this is the first time running any linters in your project, you probably want to run it against your whole project: pre-commit run --all-files

Going forward, pre-commit and its hooks will be run ahead of every commit you make.

Common issues

  1. You really need to be inside a git repo or pre-commit will not work.
  2. If you modify pyproject.toml make sure your syntax is correct; many linters will error in arcane ways due to an improperly titled section.