Skip to content

Commit 7f725d1

Browse files
mergify[bot]Kyle-VerhoogYun-Kimnizox
authored
CI fixes for 0.50 (backport #2680, #2677, #2682) (#2693)
* ci: pin riot to 0.6 (#2680) We broke some things in 0.7 so lets pin until we can get them fixed up. (cherry picked from commit 311bb02) * Added missing_import ignore to mypy config and codespell excludes config. (#2677) (cherry picked from commit 91469c6) * mysql-connector-python 8.0.24 requires Python 3.6 (#2682) (cherry picked from commit 695e715) Co-authored-by: Kyle Verhoog <[email protected]> Co-authored-by: Yun Kim <[email protected]> Co-authored-by: Nicolas Vivet <[email protected]>
1 parent 465edcd commit 7f725d1

File tree

12 files changed

+14
-13
lines changed

12 files changed

+14
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ commands:
7272
description: "Install riot"
7373
steps:
7474
# Make sure we install and run riot on Python 3
75-
- run: pip3 install -U riot
75+
- run: pip3 install riot==0.6
7676

7777
restore_tox_cache:
7878
description: "Restore .tox directory from previous runs for faster installs"

benchmarks/django_simple.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG PYTHON_VERSION=3.9-slim-buster
22

3-
# define an alias for the specfic python version used in this file.
3+
# define an alias for the specific python version used in this file.
44
FROM python:${PYTHON_VERSION} as python
55

66
# Python build stage

ddtrace/ext/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def normalize_vendor(vendor):
2121

2222

2323
try:
24-
from psycopg2.extensions import parse_dsn as parse_pg_dsn # type: ignore[import]
24+
from psycopg2.extensions import parse_dsn as parse_pg_dsn
2525
except ImportError:
2626

2727
def parse_pg_dsn(dsn):

ddtrace/internal/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def get_connection_response(
231231

232232

233233
try:
234-
from pep562 import Pep562 # type: ignore[import] # noqa
234+
from pep562 import Pep562 # noqa
235235

236236
def ensure_pep562(module_name):
237237
# type: (str) -> None

ddtrace/internal/nogevent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
try:
13-
import gevent.monkey # type: ignore[import]
13+
import gevent.monkey
1414
except ImportError:
1515

1616
def get_original(module, func):

ddtrace/internal/uwsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def check_uwsgi(worker_callback=None, atexit=None):
2222
:param worker_callback: Callback function to call in uWSGI worker processes.
2323
"""
2424
try:
25-
import uwsgi # type: ignore[import]
25+
import uwsgi
2626
except ImportError:
2727
return
2828

@@ -47,7 +47,7 @@ def check_uwsgi(worker_callback=None, atexit=None):
4747
# Register the function to be called in child process at startup
4848
if worker_callback is not None:
4949
try:
50-
import uwsgidecorators # type: ignore[import]
50+
import uwsgidecorators
5151
except ImportError:
5252
raise uWSGIConfigError("Running under uwsgi but uwsgidecorators cannot be imported")
5353
uwsgidecorators.postfork(worker_callback)

ddtrace/profiling/collector/threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _current_thread():
5858
WRAPT_C_EXT = False
5959
else:
6060
try:
61-
import ddtrace.vendor.wrapt._wrappers as _w # type: ignore[import] # noqa: F401
61+
import ddtrace.vendor.wrapt._wrappers as _w # noqa: F401
6262
except ImportError:
6363
WRAPT_C_EXT = False
6464
else:

ddtrace/utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def get_application_name():
77
# type: () -> typing.Optional[str]
88
"""Attempts to find the application name using system arguments."""
99
try:
10-
import __main__ # type: ignore[import]
10+
import __main__
1111

1212
name = __main__.__file__
1313
except (ImportError, AttributeError):

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ show_error_codes = true
44
warn_unused_ignores = true
55
warn_unused_configs = true
66
no_implicit_optional = true
7+
ignore_missing_imports = true
78

89
[mypy-ddtrace.contrib.*]
910
ignore_errors = true

riotfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
740740
pkgs={"mysql-connector-python": ["==8.0.5", "<8.0.24"]},
741741
),
742742
Venv(
743-
pys=select_pys(min_version="3"),
743+
pys=select_pys(min_version="3.6"),
744744
pkgs={"mysql-connector-python": ["==8.0.5", ">=8.0", latest]},
745745
),
746746
],
@@ -833,7 +833,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
833833
},
834834
),
835835
Venv(
836-
pys=select_pys(min_version="3"),
836+
pys=select_pys(min_version="3.6"),
837837
pkgs={
838838
"sqlalchemy": ["~=1.0.0", "~=1.1.0", "~=1.2.0", "~=1.3.0", latest],
839839
"psycopg2": ["~=2.8.0"],

0 commit comments

Comments
 (0)