Skip to content

Commit d3afa2d

Browse files
authored
Merge pull request #195 from strictdoc-project/stanislaw/python_version_39
tasks: remove flake8, fix mypy to Python 3.8 for now
2 parents 8169d43 + 0874223 commit d3afa2d

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
3.7
1+
3.9
22

tasks.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,6 @@ def lint_ruff_format(context):
119119
raise invoke.exceptions.UnexpectedExit(result)
120120

121121

122-
@task
123-
def lint_flake8(context):
124-
command = """
125-
flake8
126-
reqif/ tasks.py tests/unit/
127-
--ignore=E501,W503
128-
--statistics --max-line-length 80 --show-source
129-
"""
130-
run_invoke_cmd(context, command)
131-
132-
133122
@task
134123
def lint_ruff_check(context, fix=True):
135124
argument_fix = "--fix" if fix else ""
@@ -152,11 +141,12 @@ def lint_mypy(context):
152141
--disable-error-code=type-arg
153142
--disable-error-code=union-attr
154143
--strict
144+
--python-version=3.8
155145
""",
156146
)
157147

158148

159-
@task(lint_ruff_format, lint_ruff_check, lint_flake8, lint_mypy, aliases=["l"])
149+
@task(lint_ruff_format, lint_ruff_check, lint_mypy, aliases=["l"])
160150
def lint(_):
161151
pass
162152

0 commit comments

Comments
 (0)