mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Fix Typo & Grammatical Errors (#10980)
This commit is contained in:
parent
579250363d
commit
8adbf47c75
|
@ -2,20 +2,20 @@
|
|||
|
||||
## Before contributing
|
||||
|
||||
Welcome to [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python)! Before sending your pull requests, make sure that you __read the whole guidelines__. If you have any doubt on the contributing guide, please feel free to [state it clearly in an issue](https://github.com/TheAlgorithms/Python/issues/new) or ask the community in [Gitter](https://gitter.im/TheAlgorithms/community).
|
||||
Welcome to [TheAlgorithms/Python](https://github.com/TheAlgorithms/Python)! Before submitting your pull requests, please ensure that you __read the whole guidelines__. If you have any doubts about the contributing guide, please feel free to [state it clearly in an issue](https://github.com/TheAlgorithms/Python/issues/new) or ask the community on [Gitter](https://gitter.im/TheAlgorithms/community).
|
||||
|
||||
## Contributing
|
||||
|
||||
### Contributor
|
||||
|
||||
We are very happy that you are considering implementing algorithms and data structures for others! This repository is referenced and used by learners from all over the globe. Being one of our contributors, you agree and confirm that:
|
||||
We are delighted that you are considering implementing algorithms and data structures for others! This repository is referenced and used by learners from all over the globe. By being one of our contributors, you agree and confirm that:
|
||||
|
||||
- You did your work - no plagiarism allowed
|
||||
- You did your work - no plagiarism allowed.
|
||||
- Any plagiarized work will not be merged.
|
||||
- Your work will be distributed under [MIT License](LICENSE.md) once your pull request is merged
|
||||
- Your submitted work fulfils or mostly fulfils our styles and standards
|
||||
- Your work will be distributed under [MIT License](LICENSE.md) once your pull request is merged.
|
||||
- Your submitted work fulfills or mostly fulfills our styles and standards.
|
||||
|
||||
__New implementation__ is welcome! For example, new solutions for a problem, different representations for a graph data structure or algorithm designs with different complexity but __identical implementation__ of an existing implementation is not allowed. Please check whether the solution is already implemented or not before submitting your pull request.
|
||||
__New implementation__ is welcome! For example, new solutions for a problem, different representations for a graph data structure or algorithm designs with different complexity, but __identical implementation__ of an existing implementation is not allowed. Please check whether the solution is already implemented or not before submitting your pull request.
|
||||
|
||||
__Improving comments__ and __writing proper tests__ are also highly welcome.
|
||||
|
||||
|
@ -23,7 +23,7 @@ __Improving comments__ and __writing proper tests__ are also highly welcome.
|
|||
|
||||
We appreciate any contribution, from fixing a grammar mistake in a comment to implementing complex algorithms. Please read this section if you are contributing your work.
|
||||
|
||||
Your contribution will be tested by our [automated testing on GitHub Actions](https://github.com/TheAlgorithms/Python/actions) to save time and mental energy. After you have submitted your pull request, you should see the GitHub Actions tests start to run at the bottom of your submission page. If those tests fail, then click on the ___details___ button try to read through the GitHub Actions output to understand the failure. If you do not understand, please leave a comment on your submission page and a community member will try to help.
|
||||
Your contribution will be tested by our [automated testing on GitHub Actions](https://github.com/TheAlgorithms/Python/actions) to save time and mental energy. After you have submitted your pull request, you should see the GitHub Actions tests start to run at the bottom of your submission page. If those tests fail, then click on the ___details___ button to read through the GitHub Actions output to understand the failure. If you do not understand, please leave a comment on your submission page and a community member will try to help.
|
||||
|
||||
#### Issues
|
||||
|
||||
|
@ -58,7 +58,7 @@ Algorithms should:
|
|||
* contain doctests that test both valid and erroneous input values
|
||||
* return all calculation results instead of printing or plotting them
|
||||
|
||||
Algorithms in this repo should not be how-to examples for existing Python packages. Instead, they should perform internal calculations or manipulations to convert input values into different output values. Those calculations or manipulations can use data types, classes, or functions of existing Python packages but each algorithm in this repo should add unique value.
|
||||
Algorithms in this repo should not be how-to examples for existing Python packages. Instead, they should perform internal calculations or manipulations to convert input values into different output values. Those calculations or manipulations can use data types, classes, or functions of existing Python packages but each algorithm in this repo should add unique value.
|
||||
|
||||
#### Pre-commit plugin
|
||||
Use [pre-commit](https://pre-commit.com/#installation) to automatically format your code to match our coding style:
|
||||
|
@ -77,7 +77,7 @@ pre-commit run --all-files --show-diff-on-failure
|
|||
|
||||
We want your work to be readable by others; therefore, we encourage you to note the following:
|
||||
|
||||
- Please write in Python 3.12+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
|
||||
- Please write in Python 3.12+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
|
||||
- Please focus hard on the naming of functions, classes, and variables. Help your reader by using __descriptive names__ that can help you to remove redundant comments.
|
||||
- Single letter variable names are *old school* so please avoid them unless their life only spans a few lines.
|
||||
- Expand acronyms because `gcd()` is hard to understand but `greatest_common_divisor()` is not.
|
||||
|
@ -145,7 +145,7 @@ We want your work to be readable by others; therefore, we encourage you to note
|
|||
python3 -m doctest -v my_submission.py
|
||||
```
|
||||
|
||||
The use of the Python builtin `input()` function is __not__ encouraged:
|
||||
The use of the Python built-in `input()` function is __not__ encouraged:
|
||||
|
||||
```python
|
||||
input('Enter your input:')
|
||||
|
|
Loading…
Reference in New Issue
Block a user