- bash/zsh/wsl Terminal
- Python
- Clone this repository to your local machine:
git clone https://github.com/your-username/txtToWeb.git
- Navigate to the txtToWeb directory:
cd txtToWeb
- Make it executable
chmod +x txtToWeb.py
If you haven't installed Black yet, you can do so by running the following command in your terminal:
pip install black
Make sure the script is executable:
chmod +x format_project.sh
Run the script to format your entire project:
./format_project.sh
If you haven't installed Pylint yet, you can do so by running the following command in your terminal:
pip install pylint
Make sure the script is executable:
chmod +x run_pylint.sh
Run the script to format your entire project:
./run_pylint.sh
- 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
}
- 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"]
}
- Python
unittest
module (included in Python standard library)
To run the tests locally, navigate to the project directory in your terminal and execute the following command:
python -m unittest test_txtToWeb.py
- Python
unittest
module (included in Python standard library)
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.
-
Fork the Repository: Start by forking the repository on GitHub.
-
Create a New Branch: Create a new branch for your contributions:
git checkout -b feature/new-feature
-
Make Changes: Write your tests or make changes to existing tests.
-
Run Tests Locally: Before submitting a pull request, ensure that your tests pass locally.
python -m unittest test_txtToWeb.py
-
Commit Changes: Commit your changes with meaningful commit messages.
git commit -m "Add tests for new feature"
-
Push Changes: Push your changes to your forked repository.
git push origin feature/new-feature
-
Create Pull Request: Open a pull request on the main repository to merge your changes.