Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
863efc01
Unverified
提交
863efc01
authored
5月 21, 2024
作者:
Pham Nguyen Hung
提交者:
GitHub
5月 21, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved mypy from pre-commit to GitHub Action (#775)
上级
880a57aa
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
49 行增加
和
14 行删除
+49
-14
mypy.yml
.github/workflows/mypy.yml
+45
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+0
-14
environment.yml
environment.yml
+4
-0
没有找到文件。
.github/workflows/mypy.yml
0 → 100644
浏览文件 @
863efc01
name
:
mypy
on
:
pull_request
:
push
:
branches
:
[
main
]
jobs
:
mypy
:
runs-on
:
ubuntu-latest
defaults
:
run
:
shell
:
bash -l {0}
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Cache conda
uses
:
actions/cache@v4
env
:
# Increase this value to reset cache if environment.yml has not changed
CACHE_NUMBER
:
0
with
:
path
:
~/conda_pkgs_dir
key
:
${{ runner.os }}-py310-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('environment.yml') }}
-
uses
:
conda-incubator/setup-miniconda@v3
with
:
miniforge-variant
:
Mambaforge
miniforge-version
:
latest
mamba-version
:
"
*"
activate-environment
:
pytensor-test
channel-priority
:
strict
environment-file
:
environment.yml
python-version
:
"
3.10"
use-mamba
:
true
use-only-tar-bz2
:
false
# IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
-
name
:
Install-pytensor and mypy dependencies
run
:
|
conda activate pytensor-test
pip install -e .
python --version
-
name
:
Run mypy
run
:
|
conda activate pytensor-test
python ./scripts/run_mypy.py --verbose
\ No newline at end of file
.pre-commit-config.yaml
浏览文件 @
863efc01
...
...
@@ -27,17 +27,3 @@ repos:
-
id
:
ruff
args
:
[
"
--fix"
,
"
--output-format=full"
]
-
id
:
ruff-format
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
v1.10.0
hooks
:
-
id
:
mypy
language
:
python
entry
:
python ./scripts/run_mypy.py --verbose
additional_dependencies
:
-
numpy>=1.20
-
pandas
-
types-filelock
-
types-setuptools>=67.6.0.8
always_run
:
true
require_serial
:
true
pass_filenames
:
false
environment.yml
浏览文件 @
863efc01
...
...
@@ -26,6 +26,9 @@ dependencies:
# For testing
-
coveralls
-
diff-cover
-
mypy
-
types-filelock
-
types-setuptools
-
pytest
-
pytest-cov
-
pytest-xdist
...
...
@@ -41,6 +44,7 @@ dependencies:
# code style
-
ruff
# developer tools
-
pandas
# required to run mypy script
-
pre-commit
-
packaging
-
typing_extensions
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论