Check and fix maya virus.
Project description
maya-umbrella
Check and fix maya virus.
发开环境设置
通过虚拟环境去设置开发环境, 推荐python-3.8以上的版本
pip install nox poetry
开发调试
nox -s maya-2020
在maya中测试
通过nox -s maya-xxx
, 启动maya.
nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了maya-2020
,那么通过nox -s maya-2018
启动maya后在脚本编辑器中执行下面得代码,就会动态的从<repo>/tests/virus/
里面去open ma文件去进行测试.
import manual_test_in_maya
manual_test_in_maya.start()
增加新的疫苗
在<repo>/maya_umbrella/vaccines/
新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以vaccine<id>.py
继承from maya_umbrella.vaccine import AbstractVaccine
并且class名字叫Vaccine
即可, 然后去写具体的收集病毒逻辑
代码检查
我们可以利用封装好的nox
命令去执行进行代码检查
nox -s ruff_check
环境变量
我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
修改maya umbrella的日志保存目录,默认是windows temp目录
MAYA_UMBRELLA_LOG_ROOT
修改maya umbrella的日志文件名称, 默认是maya_umbrella
MAYA_UMBRELLA_LOG_NAME
设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
MAYA_UMBRELLA_LOG_LEVEL
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Hal 💻 🚇 ⚠️ |
hotwinter0 ⚠️ 💻 |
lingyunfx ⚠️ |
yjjjj ⚠️ 💻 |
This project follows the all-contributors specification. Contributions of any kind are welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for maya_umbrella-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe853e5f68f1ca1898d2708d9d6454304b09a05c043e5dd5efe345237f42d79 |
|
MD5 | 8a7432744c94c8893d46552cba5e99df |
|
BLAKE2b-256 | 20e041e59b06ce029c4f08474940a1dc06fe6b7b837c17ef9528c08628f142e6 |