Skip to content

Latest commit

 

History

History
168 lines (109 loc) · 3.39 KB

CONTRIBUTING.md

File metadata and controls

168 lines (109 loc) · 3.39 KB

Setup

Requirements

  1. bash/zsh/wsl Terminal
  2. Python

Installation

  1. Clone this repository to your local machine:
   git clone https://github.com/your-username/txtToWeb.git
  1. Navigate to the txtToWeb directory:
   cd txtToWeb
  1. Make it executable
    chmod +x txtToWeb.py

Using Black Formatter

Installation

If you haven't installed Black yet, you can do so by running the following command in your terminal:

pip install black

Running the Script

Make sure the script is executable:

chmod +x format_project.sh

Run the script to format your entire project:

./format_project.sh

Using Pylint

Installation

If you haven't installed Pylint yet, you can do so by running the following command in your terminal:

pip install pylint

Running the Script

Make sure the script is executable:

chmod +x run_pylint.sh

Run the script to format your entire project:

./run_pylint.sh

Configure Black as the Formatter:

  • Open your project in VSCode.
  • Ensure you have Black installed in your Python environment by running pip install black.
  • Create a .vscode/settings.json file in your project directory if it doesn't already exist.
  • Add the following content to settings.json to configure Black as the formatter:
{
  "python.formatting.provider": "black",
  "editor.formatOnSave": true
}

Configure Pylint as the Linter:

  • Open your project in VSCode.
  • Ensure you have Black installed in your Python environment by running pip install black.
  • Create a .vscode/settings.json file in your project directory if it doesn't already exist.
  • Add the following content to your .vscode/settings.json file to configure Pylint as the linter:
{
  "python.linting.enabled": true,
  "python.linting.pylintEnabled": true,
  "python.linting.pylintArgs": ["--load-plugins", "pylint_quotes"]
}

Running Tests

Requirements

  1. Python
  2. unittest module (included in Python standard library)

Running Tests Locally

To run the tests locally, navigate to the project directory in your terminal and execute the following command:

python -m unittest test_txtToWeb.py

Running Tests

Requirements

  1. Python
  2. unittest module (included in Python standard library)

Running Tests Locally

To run the tests locally, navigate to the project directory in your terminal and execute the following command:

python -m unittest test_txtToWeb.py

This command will discover and run all tests in the test_txtToWeb.py file.

Contribution Guidelines

  1. Fork the Repository: Start by forking the repository on GitHub.

  2. Create a New Branch: Create a new branch for your contributions:

    git checkout -b feature/new-feature
  3. Make Changes: Write your tests or make changes to existing tests.

  4. Run Tests Locally: Before submitting a pull request, ensure that your tests pass locally.

    python -m unittest test_txtToWeb.py
  5. Commit Changes: Commit your changes with meaningful commit messages.

    git commit -m "Add tests for new feature"
  6. Push Changes: Push your changes to your forked repository.

    git push origin feature/new-feature
  7. Create Pull Request: Open a pull request on the main repository to merge your changes.