From 9690e4d51fe91081921fff2dc0e370d7c61aeec5 Mon Sep 17 00:00:00 2001 From: Jacob Pavlock Date: Tue, 21 Jul 2020 14:49:51 -0700 Subject: [PATCH] improve code blocks --- CONTRIBUTING.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5e3a155cf..6c024e3d9 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -251,9 +251,7 @@ Editor Settings Personally, I work on beets with `vim `__. Here are some ``.vimrc`` lines that might help with PEP 8-compliant Python -coding: - -:: +coding:: filetype indent on autocmd FileType python setlocal shiftwidth=4 tabstop=4 softtabstop=4 expandtab shiftround autoindent @@ -329,11 +327,11 @@ test`_ suite. These tests can be useful in detecting external changes that would affect ``beets``. In order to do this, simply add the following snippet before the applicable test case: -:: +.. code-block:: python - @unittest.skipUnless( - os.environ.get('INTEGRATION_TEST', '0') == '1', - 'integration testing not enabled') + @unittest.skipUnless( + os.environ.get('INTEGRATION_TEST', '0') == '1', + 'integration testing not enabled') If you do this, it is also advised to create a similar test that 'mocks' the network call and can be run under normal circumstances by our CI and