PyDMD / PyDMD

Python Dynamic Mode Decomposition

Home Page:https://pydmd.github.io/PyDMD/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`black` verbosity

ndem0 opened this issue Β· comments

Is your feature request related to a problem? Please describe.
It would be great if the black static check will show also some details about the code, at the moment if I'm not wrong the output is just green or red light. It's anyway useful, but it's would save time and effort to find the errors.

Describe the solution you'd like
At least the lines with issues, even better with a minimal description of the issue.

Describe alternatives you've considered
If we want to keep in this way (since we have already codacy for puntual analysis), I think it's better to make the black check a mandatory requirement for merging PR.

Additional context
Current output

Run black --check tutorials/
  black --check tutorials/
  if [[ $? -ne "0" ]]; then
    echo "Tutorials need re-formatting"
    exit 1
  fi
  shell: /usr/bin/bash -e {0}
would reformat /home/runner/work/PyDMD/PyDMD/tutorials/tutorial15/tutorial-15-pidmd.ipynb

Oh no! πŸ’₯ πŸ’” πŸ’₯
1 file would be reformatted, [2](https://github.com/PyDMD/PyDMD/actions/runs/5553688605/jobs/10142541081?pr=424#step:5:2)8 files would be left unchanged.
Error: Process completed with exit code 1.