Skip to content

Commit 46866bb

Browse files
committed
refactor: fix bandit issues
1 parent f7571d0 commit 46866bb

File tree

3 files changed

+2114
-2110
lines changed

3 files changed

+2114
-2110
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)