File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : type checking
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ mypy :
7+ runs-on : ubuntu-20.04
8+
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v2
12+
13+ - name : Set up Python 3.8.11
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : 3.8.11
17+
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install mypy django-stubs
22+ pip install -e .
23+ pip install types-requests types-PyYAML types-toml
24+
25+ - name : Run mypy
26+ run : |
27+ mypy vulnerabilities
Original file line number Diff line number Diff line change 1+ [mypy]
2+ python_version = 3.8
3+ warn_return_any = True
4+ warn_unused_configs = True
5+ disallow_untyped_defs = False
6+ disallow_incomplete_defs = False
7+ check_untyped_defs = True
8+ disallow_untyped_decorators = False
9+ no_implicit_optional = True
10+ strict_optional = True
11+
12+ plugins = mypy_django_plugin.main
13+
14+ [mypy.plugins.django-stubs]
15+ django_settings_module = " vulnerablecode.settings"
16+
17+ [mypy-*.migrations.*]
18+ ignore_errors = True
19+
20+ [mypy-django.*]
21+ ignore_missing_imports = True
22+
23+ [mypy-rest_framework.*]
24+ ignore_missing_imports = True
25+
26+ [mypy-cvss.*]
27+ ignore_missing_imports = True
28+
29+ [mypy-cwe2.*]
30+ ignore_missing_imports = True
31+
32+ [mypy-packageurl.*]
33+ ignore_missing_imports = True
34+
35+ [mypy-fetchcode.*]
36+ ignore_missing_imports = True
37+
38+ [mypy-saneyaml.*]
39+ ignore_missing_imports = True
40+
41+ [mypy-univers.*]
42+ ignore_missing_imports = True
43+
44+ [mypy-pytz.*]
45+ ignore_missing_imports = True
46+
47+ [mypy-aboutcode.*]
48+ ignore_missing_imports = True
49+
50+ [mypy-toml.*]
51+ ignore_missing_imports = True
52+
53+ [mypy-bs4.*]
54+ ignore_missing_imports = True
You can’t perform that action at this time.
0 commit comments