Skip to content

Commit

Permalink
Replace pep257 -> pydocstyle (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
vb64 authored Jul 27, 2023
1 parent 77b73a8 commit 8d77188
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pep257.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:

- name: Install dependencies
run: |
pip install pep257
pip install pydocstyle
- name: source
run: |
python -m pep257 source
python -m pydocstyle source
- name: tests
run: |
python -m pep257 --match='.*\.py' tests/test
python -m pydocstyle --match='.*\.py' tests/test
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PIP = $(PYTHON) -m pip install
DEPLOY = $(GCLOUD) app deploy --project
FLAKE8 = $(PYTHON) -m flake8
LINT = $(PYTHON) -m pylint
PEP257 = $(PYTHON) -m pep257
PEP257 = $(PYTHON) -m pydocstyle
PYTEST = $(PTEST) --cov=$(SOURCE) --cov-report term:skip-covered

PRJ = text-transform-198104
Expand Down
4 changes: 2 additions & 2 deletions source/default/html2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, extract_link):
self.html_link = ''

def handle_data(self, data):
"""Data handker."""
"""Handle data."""
if self.is_skip:
self.is_skip = False
return
Expand Down Expand Up @@ -44,7 +44,7 @@ def handle_starttag(self, tag, attrs):
self.html_link = link

def text(self):
"""Result of parsing."""
"""Return result of parsing."""
return ''.join(self.__text).strip()


Expand Down
4 changes: 2 additions & 2 deletions source/default/html2text2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def extract_real_link(self, text):
return text

def handle_data(self, data):
"""Data processing."""
"""Process data."""
if self.is_skip:
self.is_skip = False
return
Expand Down Expand Up @@ -72,7 +72,7 @@ def drop_newlines(text):
return text

def text(self):
"""Result of parsing."""
"""Return result of parsing."""
return self.drop_newlines(''.join(self.__text).strip())


Expand Down
2 changes: 1 addition & 1 deletion source/default/modutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def store(label, subj, body):
"""Default handler for store incoming messages."""
"""Handle store incoming messages."""
SavedSource(label=label, subject=subj, body=body).put()
return subj + '\n' + convert(body, extract_link=True).replace(NBSP, ' ')

Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pep257
pydocstyle
flake8
pylint
pytest
Expand Down

0 comments on commit 8d77188

Please sign in to comment.