Skip to content

Commit

Permalink
Require 'import datetime as dt'
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 23, 2024
1 parent 2728b8c commit 966facb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ lint.select = [
"EM", # flake8-errmsg
"F", # pyflakes errors
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"PGH", # pygrep-hooks
Expand All @@ -81,6 +82,10 @@ lint.ignore = [
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
]
lint.flake8-import-conventions.aliases.datetime = "dt"
lint.flake8-import-conventions.banned-from = [
"datetime",
]
lint.isort.known-first-party = [
"tinytext",
]
Expand Down

0 comments on commit 966facb

Please sign in to comment.