Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pyddg pyddg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pyddg
  • pyddgpyddg
  • Merge requests
  • !627

Add helpful messages whenever tests fail & isort in test.py

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Le Nam Do requested to merge helpful-messages-whenever-tests-fail into develop Nov 26, 2023
  • Overview 20
  • Commits 11
  • Pipelines 9
  • Changes 2

The user's guide on tests remains mostly intact. Only the "Running tests" section overlapped with python3 test.py --help anyway but I still kept most of it since it has a bunch of useful tips and tricks.

Examples:

flos@t490 ~/p/p/pyddg (helpful-messages-whenever-tests-fail)> python3 test.py -s
test.py: black . --check
would reformat ddg/visualization/blender/bmesh.py

Oh no! 💥 💔 💥
1 file would be reformatted, 264 files would be left unchanged.
test.py: Failed
Suggested fix: black .
Configuration is located in pyproject.toml
The following link(s) may be helpful
    https://black.readthedocs.io/
flos@t490 ~/p/p/pyddg (helpful-messages-whenever-tests-fail) [1]> python3 test.py -l
test.py: flake8
./ddg/visualization/blender/bmesh.py:4:11: W291 trailing whitespace
test.py: Failed
Suggested fix (only for formatting warnings and errors): black .
Configuration is located in .flake8
The following link(s) may be helpful
    https://flake8.pycqa.org/

With colour:

image

Nowadays most terminals should let you click on links too.

Edited Nov 26, 2023 by Le Nam Do
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: helpful-messages-whenever-tests-fail