TASK: Update dev dependencies and provide readme

This commit is contained in:
Daniel Siepmann 2017-05-19 16:52:06 +02:00
parent 73ad18d317
commit 872968b582
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
4 changed files with 25 additions and 1 deletions

View file

@ -5,4 +5,4 @@ LABEL Description="This image should provide environment to lint neotags" Vendor
# Install dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir pep8 neovim
RUN pip install --no-cache-dir pep8 neovim pyfakefs

View file

@ -38,3 +38,14 @@ The following options are available:
- ``let g:neotags_logging = 0``
Defines whether to log anything to vims messages.
Development
===========
Install dependencies:
- ``pip install pyfakefs``
Run tests:
``cd rplugin && python -m unittest test.test_neotags``

View file

@ -0,0 +1,9 @@
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 0.0.0 /4f741b9/
SomeClass example.py /^class SomeClass(object):$/;" kind:class line:1 language:Python inherits:object access:public end:7
__init__ example.py /^ def __init__(self):$/;" kind:member line:3 language:Python scope:class:SomeClass access:public signature:(self) end:5
method example.py /^ def method(self):$/;" kind:member line:6 language:Python scope:class:SomeClass access:public signature:(self) end:7

View file

@ -110,6 +110,10 @@ class TestNeotagsPlugin(fake_filesystem_unittest.TestCase):
'expected_tags'
)
self.copyRealFile(
expected_tags_file,
expected_tags_file
)
self.copyRealFile(
os.path.join(self.templates_dirname, 'example.py'),
os.path.join(os.path.dirname(filename), os.path.basename(filename))