Skip to content

Commit

Permalink
Merge branch 'gh-pages' of github.com:swcarpentry/styles into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Jul 21, 2016
2 parents b4f5f4e + 9be4b22 commit d57b300
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/extract_figures.py
@@ -1,12 +1,12 @@
#!/usr/bin/env python

from __future__ import print_function
import sys
import os
import glob
from optparse import OptionParser

from util import Reporter, read_markdown, IMAGE_FILE_SUFFIX
from __future__ import print_function

def main():
"""Main driver."""
Expand Down
1 change: 1 addition & 0 deletions bin/lesson_check.py
Expand Up @@ -4,6 +4,7 @@
Check lesson files and their contents.
"""

from __future__ import print_function
import sys
import os
import glob
Expand Down
2 changes: 1 addition & 1 deletion bin/lesson_initialize.py
Expand Up @@ -3,9 +3,9 @@
"""Initialize a newly-created repository."""


from __future__ import print_function
import sys
import os
from __future__ import print_function

ROOT_AUTHORS = '''\
FIXME: list authors' names and email addresses.
Expand Down
2 changes: 1 addition & 1 deletion bin/repo_check.py
Expand Up @@ -4,14 +4,14 @@
Check repository settings.
"""

from __future__ import print_function
import sys
import os
from subprocess import Popen, PIPE
import re
from optparse import OptionParser

from util import Reporter, load_yaml, require
from __future__ import print_function

# Import this way to produce a more useful error message.
try:
Expand Down
6 changes: 3 additions & 3 deletions bin/test_lesson_check.py
Expand Up @@ -5,12 +5,12 @@

class TestFileList(unittest.TestCase):
def setUp(self):
self.reporter = util.Reporter(None) ## TODO: refactor reporter class.
self.reporter = util.Reporter() ## TODO: refactor reporter class.

def test_file_list_has_expected_entries(self):
# For first pass, simply assume that all required files are present
all_filenames = [item[1].replace('%', '')
for item in lesson_check.REQUIRED_FILES]
all_filenames = [filename.replace('%', '')
for filename in lesson_check.REQUIRED_FILES]

lesson_check.check_fileset('', self.reporter, all_filenames)
self.assertEqual(len(self.reporter.messages), 0)
Expand Down
2 changes: 1 addition & 1 deletion bin/util.py
@@ -1,8 +1,8 @@
from __future__ import print_function
import sys
import os
import json
from subprocess import Popen, PIPE
from __future__ import print_function

# Import this way to produce a more useful error message.
try:
Expand Down
2 changes: 1 addition & 1 deletion bin/workshop_check.py
Expand Up @@ -4,12 +4,12 @@
docstrings on the checking functions for a summary of the checks.
'''

from __future__ import print_function
import sys
import os
import re
from datetime import date
from util import Reporter, split_metadata, load_yaml, check_unwanted_files
from __future__ import print_function

# Metadata field patterns.
EMAIL_PATTERN = r'[^@]+@[^@]+\.[^@]+'
Expand Down

0 comments on commit d57b300

Please sign in to comment.