Skip to content

Commit

Permalink
Merge f28734a into 68d43c1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytelife26 committed May 16, 2021
2 parents 68d43c1 + f28734a commit dd6b03a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
shell: bash
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9, pypy3]
python: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- name: "[INIT] Checkout repository"
uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions proselint/checks/uncomparables/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
attention and expects you to have done the same.
"""
import re
from proselint.tools import memoize
import itertools


@memoize
def check(text):
"""Check the text."""
err = "uncomparables.misc"
Expand Down Expand Up @@ -114,7 +112,7 @@ def check(text):
("more", "possible") # FIXME
]

all = [r"\\b" + i[0] + r"\s" + i[1] + r"[\W$]" for i in itertools.product(
all = [i[0] + r"\s" + i[1] + r"[\W$]" for i in itertools.product(
comparators, uncomparables) if i not in exceptions]

occ = re.finditer("|".join(all), text.lower())
Expand Down
4 changes: 2 additions & 2 deletions tests/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def passes(self, lst):

errors = []
for text in lst:
errors.append(self.this_check.check(text))
errors += self.this_check.check(text)

return len(errors[0]) == 0
return len(errors) == 0

def wpe_too_high(self):
"""Check whether the check is too noisy."""
Expand Down

0 comments on commit dd6b03a

Please sign in to comment.