This project contains a collection of algorithms to solve various LeetCode problems. The codebase is maintained with high standards of code quality, and static analysis tools are used to ensure the code adheres to these standards.
- Python 3.9 or higher
- Docker (if you want to run the analysis in a Docker container)
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
-
On macOS and Linux:
source .venv/bin/activate
-
On Windows:
.venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Build the Docker image:
docker build -t static-analysis .
To run the static analysis script, use the following command:
-
With Virtual Environment:
./static_analysis.sh
-
With Docker:
- Go inside the container
docker run --rm -it -v $(pwd)/algorithms:/usr/src/app/algorithms static-analysis bash
- run:
./static_analysis.sh
The static_analysis.sh script performs the following actions:
- Checks if any errors were found during the static analysis.
- Outputs the results of the static analysis.
Feel free to submit issues or pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License.