8000 build: remove mypy checker · proofit404/stories@bd4fbd0 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd4fbd0

Browse files
committed
build: remove mypy checker
1 parent 9e63c36 commit bd4fbd0

34 files changed

+7
-753
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.coverage
2-
.mypy_cache/
32
.pytest_cache/
43
.tox/
54
__pycache__/

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ repos:
4242
args:
4343
- "--application-directories=.:src:tests/helpers"
4444
exclude: migrations
45-
# override until resolved:
46-
# https://github.com/asottile/reorder_python_imports/issues/103
47-
files: \.pyi?$
48-
types: []
4945
- repo: https://github.com/myint/docformatter
5046
rev: ""
5147
hooks:
@@ -59,9 +55,6 @@ repos:
5955
hooks:
6056
- id: black
6157
exclude: migrations
62-
# override until resolved: https://github.com/ambv/black/issues/402
63-
files: \.pyi?$
64-
types: []
6558
- repo: https://github.com/prettier/prettier
6659
rev: ""
6760
hooks:

azure-pipelines.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
bandit:
3232
python.version: "3.8"
3333
tox.env: bandit
34-
mypy:
35-
python.version: "3.8"
36-
tox.env: mypy
3734
importlint:
3835
python.version: "3.8"
3936
tox.env: importlint

mypy.ini

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

src/_stories/argument.pyi

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

src/_stories/collect.pyi

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

src/_stories/compat.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
# -*- coding: utf-8 -*-
2-
# NOTE: Every type ignore in this module is necessary due to
3-
# false-positive bugs in mypy. Feel free to remove them as they'll be
4-
# fixed. See GitHub issues for more info:
5-
# `https://github.com/python/mypy/issues/1105`,
6-
# `https://github.com/python/mypy/issues/1106`,
7-
# `https://github.com/python/mypy/issues/1107`.
82

93

104
try:
115
from enum import Enum, EnumMeta
126
except ImportError:
137
# We are on Python 2.7 and enum34 package is not installed.
14-
class Enum(object): # type: ignore
8+
class Enum(object):
159
pass
1610

17-
class EnumMeta(object): # type: ignore
11+
class EnumMeta(object):
1812
pass
1913

2014

@@ -23,34 +17,34 @@ class EnumMeta(object): # type: ignore
2317
from pydantic.main import ModelMetaclass as PydanticSpec
2418
except ImportError:
2519
# Pydantic package is not installed.
26-
class PydanticSpec(object): # type: ignore
20+
class PydanticSpec(object):
2721
pass
2822

29-
class PydanticError(object): # type: ignore
23+
class PydanticError(object):
3024
pass
3125

3226

3327
try:
3428
from marshmallow.schema import SchemaMeta as MarshmallowSpec
3529
except ImportError:
3630
# Marshmallow package is not installed.
37-
class MarshmallowSpec(object): # type: ignore
31+
class MarshmallowSpec(object):
3832
pass
3933

4034

4135
try:
4236
from cerberus import Validator as CerberusSpec
4337
except ImportError:
4438
# Cerberus package is not installed.
45-
class CerberusSpec(object): # type: ignore
39+
class CerberusSpec(object):
4640
pass
4741

4842

4943
try:
5044
from textwrap import indent
5145
except ImportError:
5246
# We are on Python 2.7
53-
def indent(text, prefix): # type: ignore
47+
def indent(text, prefix):
5448
return "".join(map(lambda l: prefix + l, text.splitlines(True)))
5549

5650

src/_stories/compat.pyi

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

src/_stories/context.pyi

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

src/_stories/contract.pyi

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

src/_stories/contrib/debug_toolbars/django/panels.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
# type: ignore
32
from debug_toolbar.panels import Panel
43
from django.utils.translation import ugettext_lazy as _
54
from django.utils.translation import ungettext_lazy as __
@@ -9,8 +8,6 @@
98

109

1110
# FIXME: Test me.
12-
#
13-
# FIXME: Type me.
1411

1512

1613
origin_make_context = _stories.context.make_context

src/_stories/contrib/debug_toolbars/flask/panels.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
# type: ignore
32
from flask import render_template
43
from flask_debugtoolbar.panels import DebugPanel
54

@@ -8,8 +7,6 @@
87

98

109
# FIXME: Test me.
11-
#
12-
# FIXME: Type me.
1310

1411

1512
origin_make_context = _stories.context.make_context

0 commit comments

Comments
 (0)
0