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

PR: Add validation prehooks #19

Closed
wants to merge 1 commit into from

Conversation

rlaverde
Copy link
Member

Fixes: #16

@rlaverde rlaverde added this to the v0.1 milestone Jan 19, 2017
@rlaverde rlaverde self-assigned this Jan 19, 2017
@rlaverde rlaverde requested a review from goanpeca January 19, 2017 22:01
hooks/pre_gen_project.py Show resolved Hide resolved
hooks/pre_gen_project.py Show resolved Hide resolved
@goanpeca
Copy link
Member

@rlaverde no need to add labels to PRs

@rlaverde rlaverde force-pushed the pre-validations branch 2 times, most recently from 86198de to 1ebc6ba Compare January 20, 2017 15:08
@rlaverde
Copy link
Member Author

@goanpeca merge?

import re
import sys

PROJECT_REGEX = r'^spyder_[_a-zA-Z0-9]+$'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be all lowercase, so A-Z is not ok

hooks/pre_gen_project.py Show resolved Hide resolved
@rlaverde
Copy link
Member Author

rlaverde commented Jan 21, 2017

As discussed by chat I only add validation for plugin_name, and I'll open another PR to make other variables invisible.

EDIT: Making other variables invisible isn't easy (See: #7) we should validate module name instead

@ccordoba12 ccordoba12 removed this from the v0.1 milestone Mar 14, 2020
@goanpeca goanpeca assigned goanpeca and unassigned rlaverde May 5, 2020
@goanpeca goanpeca removed their assignment Aug 22, 2020
@rlaverde rlaverde closed this Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cookiecutter argument validation with a pre hook python script
3 participants