code_analyzer

Contributing

We welcome contributions to the Refactoroscope project! This document provides guidelines for contributing to the project.

Getting Started

  1. Fork the repository
  2. Clone your fork:
    git clone https://github.com/your-username/code-insight-analyzer.git
    cd code-insight-analyzer
    
  3. Install dependencies:
    uv sync
    

Development Workflow

Branching Strategy

Code Style

We follow these style guides:

Run the following commands to ensure code quality:

# Format code
uv run black src/

# Sort imports
uv run isort src/

# Lint code
uv run ruff check src/

# Type check
uv run mypy src/

Testing

Run tests with:

uv run pytest

For test coverage:

uv run pytest --cov=src/

Commit Messages

Follow the Conventional Commits specification:

<type>(<scope>): <description>

[body]

[footer]

Types:

Submitting Changes

  1. Create a feature branch from develop
  2. Make your changes
  3. Add tests if applicable
  4. Update documentation if needed
  5. Run all checks and tests
  6. Commit your changes
  7. Push to your fork
  8. Create a pull request to develop

Code Review Process

All submissions require review. We use GitHub pull requests for this process.

Reviewers will check:

Reporting Issues

Use GitHub Issues to report bugs or request features:

Community