Skip to content

Commit 29d89be

Browse files
authored
Merge pull request #497 from staticdev/bugfix/remove-darglint
Remove darglint
2 parents 0bb5755 + 6489873 commit 29d89be

File tree

7 files changed

+574
-593
lines changed

7 files changed

+574
-593
lines changed

.darglint

Lines changed: 0 additions & 2 deletions
This file was deleted.

.flake8

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[flake8]
2-
select = B,B9,C,D,DAR,E,F,N,W
2+
select = B,B9,C,D,E,F,N,W
33
ignore = E203,E501,W503,B905
44
max-line-length = 80
55
max-complexity = 10
6-
docstring-convention = google
76
; TODO open upstream issue for N806 on Enum
87
per-file-ignores = times.py:N806

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def precommit(session: Session) -> None:
117117
session.install(
118118
"bandit",
119119
"black",
120-
"darglint",
121120
"flake8",
122121
"flake8-bugbear",
123122
"flake8-docstrings",

poetry.lock

Lines changed: 569 additions & 582 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ exclude = ["src/human_readable/locale/**/*.po"]
2121
Changelog = "https://github.com/staticdev/human-readable/releases"
2222

2323
[tool.poetry.dependencies]
24-
# <4 removal pending new release of isort https://github.com/PyCQA/isort/issues/1986
25-
python = ">=3.8,<4"
24+
python = ">=3.8"
2625

2726
[tool.poetry.dev-dependencies]
2827
bandit = ">=1.7.4"
2928
black = ">=22.1"
3029
coverage = {extras = ["toml"], version = ">=6.3.2"}
31-
darglint = ">=1.8.1"
3230
flake8 = ">=5.0.4"
3331
flake8-bugbear = ">=21.9.2"
3432
flake8-docstrings = ">=1.6.0"

src/human_readable/i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def gettext(message: str) -> str:
7676

7777

7878
def pgettext(msgctxt: str, message: str) -> str:
79-
"""Fetches a particular translation.
79+
"""Fetch a particular translation.
8080
8181
It works with `msgctxt` .po modifiers and allows duplicate keys with different
8282
translations.

tests/unit/test_times.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636

3737

3838
def assert_equal_datetime(dt1: dt.datetime, dt2: dt.datetime) -> None:
39-
"""Helper method to check if two datetimes are the same."""
39+
"""Help to check if two datetimes are the same."""
4040
td = dt1 - dt2
4141
assert td.seconds == 0
4242

4343

4444
def assert_equal_timedelta(td1: dt.timedelta, td2: dt.timedelta) -> None:
45-
"""Helper method to check if two timedeltas are the same."""
45+
"""Help to check if two timedeltas are the same."""
4646
assert td1.days == td2.days
4747
assert td1.seconds == td2.seconds
4848

0 commit comments

Comments
 (0)