File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ But, different lines will be included.
7777With ` django ` installed it will include
7878both ` try: ` and ` if django is not None: ` conditions.
7979
80- When running without ` django ` installed it will include ` except ImportError: ` .
80+ When running without ` django ` installed,
81+ it will include ` except ImportError: ` line.
8182
8283
8384## Writting pragma rules
@@ -88,8 +89,9 @@ Format for pragma rules is:
8889"pragma-condition": pragma-name
8990```
9091
91- Code inside ` "pragma-condition" ` is evaluted with ` exec ` .
92+ Code inside ` "pragma-condition" ` is evaluted with ` eval ` .
9293Make sure that the input you pass there is trusted!
94+ ` "pragma-condition" ` must return ` bool ` value after evaluation.
9395
9496We also provide a bunch of helpers to make writing rules easier:
9597
You can’t perform that action at this time.
0 commit comments