This project is a Python CLI application designed to manage pyenv
and Poetry
environments efficiently. It leverages AI to assist in generating, refactoring, testing, and reviewing Python code.
- Generate Python code based on user-defined tasks.
- Refactor existing code to improve readability and efficiency.
- Write unit tests using
pytest
. - Review code for bugs, security issues, and best practices.
- Integration with
Ruff
for linting and formatting. - Pre-commit hooks to ensure code quality before commits.
-
Clone the repository:
git clone <repository-url> cd python-poetry-env
-
Install dependencies:
poetry install
-
Set up pre-commit hooks:
pre-commit install
To run the application, execute the following command:
python main.py
- The OpenAI API key should be specified in the
settings.json
file. - Modify the
pyproject.toml
file to add or update dependencies as needed.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.