Use darker in pre-commit to ensure all future changes are black/isort compliant

pull/2921/head
James Campbell 2022-04-18 17:37:15 -05:00
parent f78e7732f7
commit f490ee3667
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,14 @@ repos:
files: \.py$ # only target python files, for example - skip contract_registry.json
args: [--license-filepath, '.nucypher-license', --detect-license-in-X-top-lines=16, --comment-style, '"""||"""']
- repo: https://github.com/akaihola/darker
rev: 1.4.2
hooks:
- id: darker
args: [--isort]
additional_dependencies:
- isort~=5.9
# TODO: May be incrementally introduced
# - repo: https://github.com/PyCQA/bandit