mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-12-01 11:29:08 -06:00
dbbecb5875
Currently importing yamllint recursively imports its submodules, which finally requires having pyyaml installed. This is a problem when you just want to import APP_VERSION from yamllint. For instance, setup.py imports yamllint to know the version, but doesn't know yet that pyyaml is to be installed, because it is stated in setup.py itself. To solve this, yamllint/__init__.py will only contain constants. The linting functions will be in yamllint/linter.py.
9 lines
180 B
ReStructuredText
9 lines
180 B
ReStructuredText
Development
|
|
===========
|
|
|
|
yamllint provides both a script and a Python module. The latter can be used to
|
|
write your own linting tools:
|
|
|
|
.. automodule:: yamllint.linter
|
|
:members:
|