Merge pull request #8272 from francoisfreitag/strip_whitespaces

Strip trailing whitespaces and normalize line endings
This commit is contained in:
Takeshi KOMIYA
2020-10-03 21:42:53 +09:00
committed by GitHub
89 changed files with 191 additions and 191 deletions

View File

@@ -1 +1 @@
exclude_patterns = ['_build']
exclude_patterns = ['_build']

View File

@@ -1,5 +1,5 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C)
# Copyright (C)
# This file is distributed under the same license as the Sphinx intl <Tests> package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#

View File

@@ -1 +1 @@
exclude_patterns = ['_build']
exclude_patterns = ['_build']

View File

@@ -1,2 +1,2 @@
recursive-include test_theme *.conf
recursive-include test_theme *.conf

View File

@@ -1,3 +1,3 @@
html_theme = 'test-theme'
html_theme_path = ['.', 'test_theme']
exclude_patterns = ['_build']
html_theme = 'test-theme'
html_theme_path = ['.', 'test_theme']
exclude_patterns = ['_build']

View File

@@ -1,5 +1,5 @@
=======
Theming
=======
=======
Theming
=======

View File

@@ -1,11 +1,11 @@
from setuptools import setup, find_packages
setup(
name='test-theme',
packages=find_packages(),
include_package_data=True,
entry_points="""
[sphinx_themes]
path = test_theme:get_path
""",
)
from setuptools import setup, find_packages
setup(
name='test-theme',
packages=find_packages(),
include_package_data=True,
entry_points="""
[sphinx_themes]
path = test_theme:get_path
""",
)

View File

@@ -1,5 +1,5 @@
import os
def get_path():
return os.path.dirname(os.path.abspath(__file__))
import os
def get_path():
return os.path.dirname(os.path.abspath(__file__))

View File

@@ -26,7 +26,7 @@ def test_ModuleAnalyzer_get_module_source():
ModuleAnalyzer.get_module_source('builtins')
with pytest.raises(PycodeError):
ModuleAnalyzer.get_module_source('itertools')
def test_ModuleAnalyzer_for_string():
analyzer = ModuleAnalyzer.for_string('print("Hello world")', 'module_name')