TASK: Update dev dependencies and provide readme
This commit is contained in:
parent
73ad18d317
commit
872968b582
4 changed files with 25 additions and 1 deletions
|
@ -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
|
||||
|
|
11
readme.rst
11
readme.rst
|
@ -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``
|
||||
|
|
9
rplugin/test/templates/tags
Normal file
9
rplugin/test/templates/tags
Normal 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
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue