mirror of
https://github.com/mandiant/capa.git
synced 2026-07-08 05:17:31 -07:00
3c4141589d
* update scripts/lint.py to validate rule metadata using pydantic (#1141) * doc: v401 Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
14 lines
308 B
Python
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"
|