aicoe-aiops / project-template

this is a template to use for new data science projects in the aiops group
Other
8 stars 21 forks source link

Error running black_nb #37

Closed chauhankaranraj closed 3 years ago

chauhankaranraj commented 3 years ago

Describe the bug Running precommit with the config in this repo throws an error AttributeError: module 'black' has no attribute 'PY36_VERSIONS'.

To Reproduce Steps to reproduce the behavior:

  1. Create a repo with this template
  2. Run pre-commit run --all-files
  3. See error

Expected behavior black_nb runs without errors

Screenshots Screenshot from 2021-06-17 11-05-38

Additional context This seems like the same error as seen before here and addressed in aicoe-aiops/ocp-ci-analysis#246. So maybe the same fix i.e. aicoe-aiops/ocp-ci-analysis#247 should be applied here too?

harshad16 commented 3 years ago

The version v0.5.0 black_nb has been fixed with this solution.