Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
minor changes to message of error and pytest coverage on template
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Aug 5, 2019
1 parent 2249d9e commit ea9e609
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from __future__ import print_function
import os
import sys
import shutil
from subprocess import call

Expand All @@ -31,7 +32,9 @@ def remove(filepath):
valid_name = '{{cookiecutter.python_package_name}}'.startswith('spyder_')

if not valid_name:
raise ValueError('Third party plugins name should start with spyder_')
print("Python package names for third-party Spyder plugins must start"
"with spyder_")
sys.exit(1)


def init_git():
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.git_repo_name }}/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ universal=1
{% endif -%}

[tool:pytest]
addopts =-x -v -rw --durations=10 --cov={{ cookiecutter.python_package_name }} --cov-report=term-missing
addopts =-x -v -rw --durations=10

0 comments on commit ea9e609

Please sign in to comment.