Skip to content

Commit

Permalink
Add documentation examples for invalid-envvar-default (#7024)
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
  • Loading branch information
julthep and sprytnyk authored Jun 24, 2022
1 parent 264033f commit b081b7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/data/messages/i/invalid-envvar-default/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import os

env = os.getenv('SECRET_KEY', 1) # [invalid-envvar-default]
1 change: 0 additions & 1 deletion doc/data/messages/i/invalid-envvar-default/details.rst

This file was deleted.

4 changes: 3 additions & 1 deletion doc/data/messages/i/invalid-envvar-default/good.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# This is a placeholder for correct code for this message.
import os

env = os.getenv('SECRET_KEY', '1')

0 comments on commit b081b7d

Please sign in to comment.