Files
capa/capa/version.py
T
Moritz 3c4141589d Release v4.0.1 (#1143)
* update scripts/lint.py to validate rule metadata using pydantic (#1141)

* doc: v401

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
2022-08-15 13:26:39 +02:00

14 lines
308 B
Python

__version__ = "4.0.1"
def get_major_version():
return int(__version__.partition(".")[0])
def get_rules_branch():
return f"v{get_major_version()}"
def get_rules_checkout_command():
return f"$ git clone https://github.com/mandiant/capa-rules.git -b {get_rules_branch()} /local/path/to/rules"