Skip to content

Commit da986e2

Browse files
authored
Forbid imports from datetime without dt alias (#3482)
1 parent c952580 commit da986e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ ignore = [
180180
external = [ "WPS" ]
181181

182182
# Plugin configs:
183-
flake8-import-conventions.banned-from = [ "ast" ]
183+
flake8-import-conventions.banned-from = [ "ast", "datetime" ]
184+
flake8-import-conventions.aliases = { datetime = "dt" }
184185
flake8-quotes.inline-quotes = "single"
185186
mccabe.max-complexity = 6
186187
pydocstyle.convention = "google"

0 commit comments

Comments
 (0)