Skip to content

Commit 252b287

Browse files
committed
fix flake8 warnings
1 parent aa210d4 commit 252b287

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

docs/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
autosummary_generate = True
4444

45-
breathe_projects = { "python_cpp_example": "_build/doxygenxml/" }
45+
breathe_projects = {"python_cpp_example": "_build/doxygenxml/"}
4646
breathe_default_project = "python_cpp_example"
4747
breathe_domain_by_extension = {'hpp': 'cpp'}
4848

@@ -183,6 +183,3 @@ def generate_doxygen_xml(app):
183183
def setup(app):
184184
"""Add hook for building doxygen xml when needed"""
185185
app.connect("builder-inited", generate_doxygen_xml)
186-
187-
188-

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
import os
44
import re
55
import sys
6-
import sysconfig
76
import platform
87
import subprocess
98

109
from distutils.version import LooseVersion
1110
from setuptools import setup, Extension, find_packages
1211
from setuptools.command.build_ext import build_ext
13-
from setuptools.command.test import test as TestCommand
1412
from shutil import copyfile, copymode
1513

1614

@@ -100,7 +98,7 @@ def copy_test_file(self, src_file):
10098
description='A hybrid Python/C++ test project',
10199
long_description='',
102100
packages=find_packages('src'),
103-
package_dir={'':'src'},
101+
package_dir={'': 'src'},
104102
ext_modules=[CMakeExtension('python_cpp_example/python_cpp_example')],
105103
cmdclass=dict(build_ext=CMakeBuild),
106104
test_suite='tests',

src/python_cpp_example/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22
def say_hello():
3-
print("Hello world!")
3+
print("Hello world!")

tests/math_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def test_subtract(self):
99
self.assertEqual(python_cpp_example.subtract(1, 1), 0)
1010

1111
if __name__ == '__main__':
12-
unittest.main()
12+
unittest.main()

0 commit comments

Comments
 (0)