Skip to content

Commit fa94d12

Browse files
abondara_bondarwaketzheng
authored
Update asyncmy and other deps (tortoise#1592)
* Update asyncmy and other deps * Try new version of asyncmy * Bump up asyncmy to 0.2.11 * refactor: fix bandit issues --------- Co-authored-by: a_bondar <a_bondar@wargaming.net> Co-authored-by: Waket Zheng <waketzheng@gmail.com>
1 parent c08806c commit fa94d12

File tree

3 files changed

+548
-547
lines changed

3 files changed

+548
-547
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ accel = [
4747
]
4848
asyncpg = ["asyncpg"]
4949
aiomysql = ["aiomysql"]
50-
asyncmy = ["asyncmy (>=0.2.8,<1.0.0); python_version < '4.0'"]
50+
asyncmy = ["asyncmy (>=0.2.11,<1.0.0)"]
5151
psycopg = ["psycopg[pool,binary] (>=3.0.12,<4.0.0)"]
5252
asyncodbc = ["asyncodbc (>=0.1.1,<1.0.0); python_version < '4.0'"]
5353

@@ -225,4 +225,6 @@ exclude_dirs = [
225225
"examples/*/_tests.py",
226226
"conftest.py",
227227
"tortoise/migrations/schema_editor/mssql.py",
228+
"examples/postgres_full_text_search.py",
229+
"examples/postgres.py",
228230
]

tortoise/backends/base/config_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"hostname": "host",
2424
"port": "port",
2525
"username": "user",
26-
"password": "password",
26+
"password": "password", # nosec:B105
2727
},
2828
"defaults": {"port": 5432},
2929
"cast": {
@@ -45,7 +45,7 @@
4545
"hostname": "host",
4646
"port": "port",
4747
"username": "user",
48-
"password": "password",
48+
"password": "password", # nosec:B105
4949
},
5050
"defaults": {"port": 5432},
5151
"cast": {
@@ -77,7 +77,7 @@
7777
"hostname": "host",
7878
"port": "port",
7979
"username": "user",
80-
"password": "password",
80+
"password": "password", # nosec:B105
8181
},
8282
"defaults": {"port": 3306, "charset": "utf8mb4", "sql_mode": "STRICT_TRANS_TABLES"},
8383
"cast": {
@@ -97,7 +97,7 @@
9797
"hostname": "host",
9898
"port": "port",
9999
"username": "user",
100-
"password": "password",
100+
"password": "password", # nosec:B105
101101
},
102102
"defaults": {"port": 1433},
103103
"cast": {
@@ -114,7 +114,7 @@
114114
"hostname": "host",
115115
"port": "port",
116116
"username": "user",
117-
"password": "password",
117+
"password": "password", # nosec:B105
118118
},
119119
"defaults": {"port": 1521},
120120
"cast": {

0 commit comments

Comments
 (0)