Skip to content

Commit

Permalink
Version 0.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Feb 5, 2020
1 parent 164a6a5 commit b5002ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ But, different lines will be included.
With `django` installed it will include
both `try:` and `if django is not None:` conditions.

When running without `django` installed it will include `except ImportError:`.
When running without `django` installed,
it will include `except ImportError:` line.


## Writting pragma rules
Expand All @@ -88,8 +89,9 @@ Format for pragma rules is:
"pragma-condition": pragma-name
```

Code inside `"pragma-condition"` is evaluted with `exec`.
Code inside `"pragma-condition"` is evaluted with `eval`.
Make sure that the input you pass there is trusted!
`"pragma-condition"` must return `bool` value after evaluation.

We also provide a bunch of helpers to make writing rules easier:

Expand Down

0 comments on commit b5002ea

Please sign in to comment.