Skip to content
Permalink
Browse files

rename flake8 into code_style

  • Loading branch information...
sdpython committed Apr 14, 2018
1 parent e1388c7 commit 4a18fb23951963ebbdc90307d67f3ffeb935e96c
@@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.2
- image: circleci/python:3.6.4

working_directory: ~/repo

@@ -18,8 +18,8 @@ jobs:
name: Install pandoc
command: |
sudo apt-get update
wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
wget https://github.com/jgm/pandoc/releases/download/2.1.3/pandoc-2.1.3-1-amd64.deb
sudo dpkg -i pandoc-2.1.3-1-amd64.deb
- run:
name: Install font
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import sys
import os
import datetime
@@ -67,7 +67,7 @@
\\newcommand{\\abs}[1]{\\left|#1\\right|}
\\usepackage{movie15}
"""
#\\usepackage{eepic}
# \\usepackage{eepic}

imgmath_latex_preamble += custom_preamble
latex_elements['preamble'] += custom_preamble
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=14s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=4s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=7s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=3s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=2s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=4s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=60s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=60s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=80s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=60s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=58s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=59s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=3s)
"""
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@brief test log(time=3s)
"""
@@ -29,9 +29,9 @@
from pyquickhelper.pycode.utils_tests_helper import _extended_refactoring


class TestFlake8(unittest.TestCase):
class TestCodeStyle(unittest.TestCase):

def test_flake8_src(self):
def test_code_style_src(self):
fLOG(
__file__,
self._testMethodName,
@@ -40,15 +40,15 @@ def test_flake8_src(self):
if sys.version_info[0] == 2 or "Anaconda" in sys.executable \
or "condavir" in sys.executable:
warnings.warn(
"skipping test_flake8 because of Python 2 or " + sys.executable)
"skipping test_code_style because of Python 2 or " + sys.executable)
return

thi = os.path.abspath(os.path.dirname(__file__))
src_ = os.path.normpath(os.path.join(thi, "..", "..", "src"))
check_pep8(src_, fLOG=fLOG, extended=[("fLOG", _extended_refactoring)],
neg_filter=".*faq_python.py$")

def test_flake8_test(self):
def test_code_style_test(self):
fLOG(
__file__,
self._testMethodName,
@@ -57,7 +57,7 @@ def test_flake8_test(self):
if sys.version_info[0] == 2 or "Anaconda" in sys.executable \
or "condavir" in sys.executable:
warnings.warn(
"skipping test_flake8 because of Python 2 or " + sys.executable)
"skipping test_code_style because of Python 2 or " + sys.executable)
return

thi = os.path.abspath(os.path.dirname(__file__))
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@file
@brief Module *code_beatrix*.
@@ -169,7 +169,7 @@ def clean_video(video):
pass
else:
video.close()
#~ if hasattr(video, 'reader'):
# ~ if hasattr(video, 'reader'):
#~ video.reader.close()
#~ if hasattr(video.audio, 'reader'):
# ~ if hasattr(video.audio, 'reader'):
#~ video.audio.reader.close_proc()
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@file
@brief Notebooks uses javacript which is not run when using automation, this file contains some constant to be used
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@file
@brief Some automation helpers to test notebooks and check they are still working fine.
@@ -1,4 +1,4 @@
#-*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
@file
@brief Magic command to handle files

0 comments on commit 4a18fb2

Please sign in to comment.
You can’t perform that action at this time.