Check and fix maya virus.
Project description
maya-umbrella
Check and fix maya virus.
发开环境设置
python 版本 3.9
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 lint
nox -s black
nox -s isort
环境变量
我们可以通过下列环境变量去修改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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd20f1b2d1c693e2957bf4f943ac5753b4808e865f40da1a3a7a9f6c1414591e |
|
MD5 | 20c07437fc01df5acc8f009bcd9c727d |
|
BLAKE2b-256 | 5ff37a12b9e480c8f5ea76d3c7689b40b738656f5464701c81a67fbc35197e99 |