diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 164d481..63469a6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,169 +1,76 @@ -# Contributing to newzy +# Contributing to Newzy -First off, thank you for considering contributing to newzy! It's people like you that make newzy such a great tool. +Thank you for your interest in contributing to Newzy! This document outlines the guidelines and processes for contributing to the project. -## Table of Contents - -- [Code of Conduct](#code-of-conduct) -- [How Can I Contribute?](#how-can-i-contribute) - - [Reporting Bugs](#reporting-bugs) - - [Suggesting Enhancements](#suggesting-enhancements) - - [Pull Requests](#pull-requests) -- [Development Setup](#development-setup) -- [Coding Standards](#coding-standards) -- [Git Workflow](#git-workflow) -- [Style Guides](#style-guides) - -## Code of Conduct - -This project and everyone participating in it is expected to abide by the following code of conduct: - -- Be respectful and considerate -- Focus on what is best for the community -- Accept constructive criticism gracefully - -Please read our [Code of Conduct](CODE_OF_CONDUCT.md) before contributing. - -## How Can I Contribute? +## How to Contribute ### Reporting Bugs -Before creating bug reports, please check existing issues to avoid duplicates. When you are creating a bug report, please include as many details as possible: +Please open an issue on GitHub with: +- A clear description of the problem +- Steps to reproduce (if applicable) +- Expected vs actual behavior +- Environment details (OS, browser version, etc.) -- **Use a clear and descriptive title** -- **Describe the exact steps to reproduce** the bug -- **Provide specific examples** to demonstrate the steps (include links to files or projects that demonstrate the issue) -- **Describe the behavior you observed** after following the steps -- **Describe the behavior you expected** after following the steps +### Suggesting Features -### Suggesting Enhancements +We welcome feature suggestions! Please submit detailed proposals including: +- Problem statement +- Proposed solution +- Use cases and benefits -Enhancement suggestions are tracked as GitHub issues. Create an issue and clearly describe: +### Making Changes -1. **Is your feature request related to a problem? Please describe it.** -2. **Describe the solution you'd like** -3. **Describe alternatives you've considered** -4. **Provide additional context** (e.g., motivation for this feature) +1. **Fork** the repository +2. Create a new **branch** (`git checkout -b feature/amazing-feature`) +3. Make your changes following our coding standards +4. Write or update tests as needed +5. Ensure all tests pass (`pytest -v`) +6. Submit a **pull request** -### Pull Requests +## Development Standards -1. Fork the repo and create your branch from `develop`. -2. If you've added code that should be tested, add tests. -3. Ensure the test suite passes. -4. Update documentation if needed. -5. Make sure your code lints. -6. Issue that pull request! +### Code Style -**Pull Request Guidelines**: Use one of the following prefixes to categorize your PR: +- Follow Python PEP 8 guidelines +- Use type hints for function signatures +- Include docstrings for public functions and classes -- `feat:` - A new feature -- `fix:` - A bug fix -- `docs:` - Documentation changes -- `style:` - Formatting, missing semicolons, etc; no code change -- `refactor:` - Code change that neither fixes a bug nor adds a feature -- `perf:` - A code change that improves performance -- `test:` - Adding missing tests -- `chore:` - Changes to the build process or auxiliary tools +### Testing -## Development Setup +- Write tests for all new features +- Aim for at least 70% code coverage +- Run `pytest` before submitting PRs -### Requirements +### Commit Messages -- Node.js (v18+) -- npm or yarn - -### Installation - -```bash -git clone https://github.com/daniel/newzy.git -cd newzy -npm install -cp .env.example .env -# Edit .env with your configuration -npm run dev +Use the following format: ``` +type(scope): description -## Coding Standards - -We use modern JavaScript (ES6+). Follow these guidelines: - -- Use consistent indentation (2 spaces) -- Single quotes instead of double quotes (unless using template literals) -- Semicolons at the end of each statement -- No trailing whitespace -- One function per file when possible -- Meaningful variable and function names - -Example: - -```javascript -// Good -const users = getUserData(); -if (users.length > 0) { - return users[0]; -} - -// Bad -const user = get_data(); -if(user.length > 0){ - return user[0] -} -``` - -## Git Workflow - -### Branching Strategy - -We follow a GitFlow-inspired workflow: - -- `main` - Production-ready code -- `develop` - Integration branch for feature development -- `feature/*` - New features and enhancements (branch from develop) -- `bugfix/*` - Bug fixes from develop -- `hotfix/*` - Critical fixes from main - -### Making a Commit - -When making commits, use the following format: - -``` -(): - - - -