Skip to content

Commit

Permalink
Fix project
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskerPRC committed Sep 10, 2024
1 parent e599532 commit bb0f334
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
3 changes: 3 additions & 0 deletions infra_ai_service.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Metadata-Version: 2.1
Name: infra_ai_service
Version: 0.1
10 changes: 10 additions & 0 deletions infra_ai_service.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
README.md
setup.py
infra_ai_service/__init__.py
infra_ai_service/demo.py
infra_ai_service.egg-info/PKG-INFO
infra_ai_service.egg-info/SOURCES.txt
infra_ai_service.egg-info/dependency_links.txt
infra_ai_service.egg-info/top_level.txt
tests/__init__.py
tests/test_demo.py
1 change: 1 addition & 0 deletions infra_ai_service.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions infra_ai_service.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
infra_ai_service
tests
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ deps =
requests
mock
commands =
pytest app/tests/ --cov-report=term-missing
pytest tests/ --cov=infra_ai_service --cov-report=term-missing

[testenv:lint]
deps =
flake8
black
isort
commands =
flake8 app/tests/
black --check app/tests/
isort --check-only app/tests/
flake8 infra_ai_service/ tests/
black --check infra_ai_service/ tests/
isort --check-only infra_ai_service/ tests/

[testenv:coverage]
deps =
coverage
commands =
coverage report --fail-under=80 # 更新了之前的注释错误
coverage report --fail-under=70 # 将阈值设置为80%
coverage html

[testenv:format]
Expand All @@ -33,5 +33,5 @@ deps =
black
isort
commands =
black app/tests/
isort app/tests/
black infra_ai_service/ tests/
isort infra_ai_service/ tests/

0 comments on commit bb0f334

Please sign in to comment.