Skip to content

Commit 27dca14

Browse files
committed
Update code with pre-commit checks
1 parent dabab41 commit 27dca14

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.LICENSE_OLD

-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2424
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2525
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2626
SOFTWARE.
27-

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ max-complexity = 10
66
max-line-length = 80
77
per-file-ignores =
88
autocorrect/constants.py: E501
9-
setup.py: E501
9+
setup.py: E501

.github/workflows/python-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2828
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2929
run: |
30-
# running pytest should ensure that English dict is downloaded
30+
# running pytest should ensure that English dict is downloaded
3131
pytest -s
3232
python setup.py sdist
3333
twine upload dist/*

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Keep the code clean with flake8.
22

3-
If you change autocorrection logic, paste tests.py output before and after changes.
3+
If you change autocorrection logic, paste tests.py output before and after changes.

autocorrect/typos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from autocorrect.constants import alphabets
2020

2121

22-
class Word(object):
22+
class Word:
2323
"""container for word-based methods"""
2424
__slots__ = ['slices', 'word', 'alphabet'] # optimization
2525

0 commit comments

Comments
 (0)