.. _installation: Installation ============ You can install the package via pip: .. code-block:: $ pip install acheck The tool requires **Python 3.8** or higher. * If you experience any issues, you may want to have a look at: https://docs.python-guide. Spell Checking ^^^^^^^^^^^^^^ The tool uses ``pyenchant`` for spell checking. It is a spellchecking library for Python, based on the `Enchant `_ library. In order to work properly you will need to install the Enchant C library manually: MacOS ------ .. code-block:: $ brew update $ brew install enchant To avoid problems, restart your system after installation. Linux ------ The quickest way is to install ``libenchant`` using the package manager of your current distribution.\ To detect the libenchant binaries, PyEnchant uses ``ctypes.util.find_library()``, which requires ``ldconfig``, ``gcc``, ``objdump`` or ``ld`` to be installed. This is the case on most major distributions, however statically linked distributions (like Alpine Linux) might not bring along ``binutils`` by default. To avoid problems, restart your system after installation. .. code-block:: $ pacman -S enchant $ sudo apt-get install enchant-2 ` If you experience any issues, you may want to have a look at: .. https://pyenchant.github.io/pyenchant/install.html It can happen that with the Enchant installation, no providers are installed that enable the spell check. For this you can install the desired provider yourself: .. code-block:: $ pacman -S aspell $ sudo apt-get install aspell Also, the desired languages can be installed in this way: .. code-block:: $ pacman -S aspell-en $ pacman -S aspell-de $ sudo apt-get install aspell-en $ sudo apt-get install aspell-de If you experience any issues, you may want to have look at: .. https://pyenchant.github.io/pyenchant/install.html#installing-a-dictionary Language -------- The standard language for the spell checker is English (en_US). You need to configure the language with the following command: .. code-block:: $ acheck config -l $language Supported languages (if installed): ``en_US`` ``en_GB`` ``de_DE`` ``fr_FR`` Plan Validation ^^^^^^^^^^^^^^^ If you want to enable plan validation, you need to download the `KCL Validator `_. Just follow the instructions on the GitHub page and download the binaries for you operating system. To get to the download, just click on the ``Azure Pipelines`` button at the beginning of the `README.md `_. Save the binaries in a location that suits you. After downloading, you need to configure the path to the validator executable file. ``bin/Validate`` or ``bin/Validate.exe`` In order to use the plan validator correctly, stop the tool and set the path like: .. code-block:: $ acheck config -v $path-to-validate-executable Examples: .. code-block:: $ acheck config -v /Users/macos64/Val-20211204.1-Darwin/bin/Validate $ acheck config -v /Users/linux/Val-20211204.1-Linux/bin/Validate $ acheck config -v /Users/windows/Val-20211204.1-Windows/bin/Validate.exe