Table of Contents:
- Step-by-step instructions for installing LintQ
- Installation Check
- Clone the repository:
git clone <this-repo-github-url>
- Open the
REQUIREMENTS.md
file and check that your hardware setup satisfies the recommended requirements. Check also that your system hasconda
anddocker
installed. If not, follow the installation guide there to obtain the software you need. We recommend using an environment that is as close as possible to those we used for our experiments, refer to theREQUIREMENTS.md
file. - install the Python dependencies via Conda virtual environment from our configuration file here:
conda env create -f virtualenv/conda/environment.yml
- activate the virtual environment:
conda activate LintQEnv
- Build the docker image to run LintQ, run this command from the root of the repo:
At the end check that the docker image has been build correctly by running:
python automation_scripts/create_docker_image_locally.py
docker images
, you should see an image namedlintq
.
- To check that you set up LintQ correctly run this command:
That should show you the following:
docker run -v "$(pwd)/data:/home/codeql/project/data" -it --rm lintq codeql pack ls /usr/local/codeql-home/
Running on packs: mattepalte/qlint-tests, mattepalte/qiskit, mattepalte/qlint. Found mattepalte/qiskit@0.0.1 Found mattepalte/qlint@0.0.1 Found mattepalte/qlint-tests@0.0.0