@@ -461,7 +461,7 @@ C (cpplint)
461
461
462
462
*pandas * uses the `Google <https://google.github.io/styleguide/cppguide.html >`_
463
463
standard. Google provides an open source style checker called ``cpplint ``, but we
464
- use a fork of it that can be found `here <https://github.com/cpplint/cpplint >`_ .
464
+ use a fork of it that can be found `here <https://github.com/cpplint/cpplint >`__ .
465
465
Here are *some * of the more common ``cpplint `` issues:
466
466
467
467
- we restrict line-length to 80 characters to promote readability
@@ -479,7 +479,7 @@ You can also run this command on an entire directory if necessary::
479
479
480
480
To make your commits compliant with this standard, you can install the
481
481
`ClangFormat <http://clang.llvm.org/docs/ClangFormat.html >`_ tool, which can be
482
- downloaded `here <http://llvm.org/builds/ >`_ . To configure, in your home directory,
482
+ downloaded `here <http://llvm.org/builds/ >`__ . To configure, in your home directory,
483
483
run the following command::
484
484
485
485
clang-format style=google -dump-config > .clang-format
@@ -520,15 +520,6 @@ submitting code to run the check yourself on the diff::
520
520
521
521
git diff master | flake8 --diff
522
522
523
- Furthermore, we've written a tool to check that your commits are PEP8 great, `pip install pep8radius
524
- <https://github.com/hayd/pep8radius> `_. Look at PEP8 fixes in your branch vs master with::
525
-
526
- pep8radius master --diff
527
-
528
- and make these changes with::
529
-
530
- pep8radius master --diff --in-place
531
-
532
523
Backwards Compatibility
533
524
~~~~~~~~~~~~~~~~~~~~~~~
534
525
@@ -611,7 +602,27 @@ Or with one of the following constructs::
611
602
pytest pandas/tests/[test-module].py::[TestClass]
612
603
pytest pandas/tests/[test-module].py::[TestClass]::[test_method]
613
604
614
- For more, see the `pytest<http://doc.pytest.org/en/latest/> `_ documentation.
605
+ Using `pytest-xdist <https://pypi.python.org/pypi/pytest-xdist >`_, one can
606
+ speed up local testing on multicore machines. To use this feature, you will
607
+ need to install `pytest-xdist ` via::
608
+
609
+ pip install pytest-xdist
610
+
611
+ Two scripts are provided to assist with this. These scripts distribute
612
+ testing across 4 threads.
613
+
614
+ On Unix variants, one can type::
615
+
616
+ test_fast.sh
617
+
618
+ On Windows, one can type::
619
+
620
+ test_fast.bat
621
+
622
+ This can significantly reduce the time it takes to locally run tests before
623
+ submitting a pull request.
624
+
625
+ For more, see the `pytest <http://doc.pytest.org/en/latest/ >`_ documentation.
615
626
616
627
.. versionadded :: 0.20.0
617
628
0 commit comments