Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
prace-lessons
Lesson Template
Commits
fcc731bf
Commit
fcc731bf
authored
7 years ago
by
Raniere Silva
Browse files
Options
Downloads
Patches
Plain Diff
Port changes from workshop
parent
e1a840c9
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/workshop_check.py
+6
-5
6 additions, 5 deletions
bin/workshop_check.py
with
6 additions
and
5 deletions
bin/workshop_check.py
+
6
−
5
View file @
fcc731bf
...
...
@@ -205,9 +205,9 @@ def check_helpers(helpers):
@look_for_fixme
def
check_email
(
email
):
"""
'
email
'
must be a
valid email address consisting of characters,
an
'
@
'
, and more characters. It should not be the default contact
email address
'
admin@software-carpentry.org
'
.
'
email
'
must be a
comma-separated list of valid email addresses.
The list may be empty. A valid email address consists of characters,
an
'
@
'
, and more characters. It should not contain the default contact
"""
return
bool
(
re
.
match
(
EMAIL_PATTERN
,
email
))
and
\
...
...
@@ -286,8 +286,9 @@ HANDLERS = {
'
helper list isn
\'
t a valid list of format
'
+
'
[
"
First helper
"
,
"
Second helper
"
,..]
'
),
'
email
'
:
(
True
,
check_email
,
'
contact email invalid or still set to
'
+
'
email
'
:
(
True
,
check_emails
,
'
contact email list isn
\'
t a valid list of format
'
+
'
[
"
me@example.org
"
,
"
you@example.org
"
,..] or contains incorrectly formatted email addresses or
'
+
'"
{0}
"
.
'
.
format
(
DEFAULT_CONTACT_EMAIL
)),
'
eventbrite
'
:
(
False
,
check_eventbrite
,
'
Eventbrite key appears invalid
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment