<commit_before>@ECHO OFF

:: A simple script for testing on Windows.  This does almost the same thing
:: that Travis and AppVeyor do.
:: NOTE: This script does not perform any kind of setup (virtualenv, build
:: tool chanin, etc)

ECHO ========================================================================================
ECHO pep8 pywincffi
ECHO ========================================================================================
pep8 pywincffi
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pep8 tests
ECHO ========================================================================================
pep8 tests
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pylint pywincffi
ECHO ========================================================================================
pylint pywincffi --reports no
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pylint tests
ECHO ========================================================================================
pylint tests --reports no ^
    --disable missing-docstring,invalid-name,too-many-arguments ^
    --disable protected-access,no-self-use,unused-argument ^
    --disable too-few-public-methods
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO setup.py bdist_wheel
ECHO ========================================================================================
python setup.py bdist_wheel > NUL
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO sphinx-build -q -b html -W -E -a -d docs/build/doctrees docs/source docs/build/html
ECHO ========================================================================================
sphinx-build -q -b html -W -E -a -d docs/build/doctrees docs/source docs/build/html
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO sphinx-build -q -b linkcheck -W -E -a -d docs/build/doctrees docs/source docs/build/html
ECHO ========================================================================================
sphinx-build -q -b linkcheck -W -E -a -d docs/build/doctrees docs/source docs/build/html
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%


ECHO ========================================================================================
ECHO nosetests -sv tests
ECHO ========================================================================================
nosetests -sv tests
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
ECHO ========================================================================================
<commit_msg>remote link check, build docs last<commit_after>@ECHO OFF

:: A simple script for testing on Windows.  This does almost the same thing
:: that Travis and AppVeyor do.
:: NOTE: This script does not perform any kind of setup (virtualenv, build
:: tool chanin, etc)

ECHO ========================================================================================
ECHO pep8 pywincffi
ECHO ========================================================================================
pep8 pywincffi
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pep8 tests
ECHO ========================================================================================
pep8 tests
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pylint pywincffi
ECHO ========================================================================================
pylint pywincffi --reports no
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO pylint tests
ECHO ========================================================================================
pylint tests --reports no ^
    --disable missing-docstring,invalid-name,too-many-arguments ^
    --disable protected-access,no-self-use,unused-argument ^
    --disable too-few-public-methods
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO setup.py bdist_wheel
ECHO ========================================================================================
python setup.py bdist_wheel > NUL
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO nosetests -sv tests
ECHO ========================================================================================
nosetests -sv tests
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

ECHO ========================================================================================
ECHO sphinx-build -q -b html -W -E -a -d docs/build/doctrees docs/source docs/build/html
ECHO ========================================================================================
sphinx-build -q -b html -W -E -a -d docs/build/doctrees docs/source docs/build/html
IF %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
ECHO ========================================================================================

{'fraction_non_alphanumeric': 0.551699334652041, 'fraction_numerical': 0.00413594677216328, 'mean_word_length': 8.223880597014926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2153826', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1078, 'n_words': 369}