||1 year ago|
|.gitignore||1 year ago|
|.pre-commit-config.yaml||1 year ago|
|Pipfile||1 year ago|
|Pipfile.lock||1 year ago|
|pyproject.toml||1 year ago|
|readme.md||1 year ago|
Security Python Template
This template is used by the SecOps team to start off new projects.
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
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.
- You really need to be inside a git repo or pre-commit will not work.
- If you modify
pyproject.tomlmake sure your syntax is correct; many linters will error in arcane ways due to an improperly titled section.