Skip to content

Commit 42e62bd

Browse files
authored
Update setting (#339)
* fix * update pyproject * 統計情報の取得する際リトライするようにする * version up * 不要なテストを削除する * format
1 parent 712eea6 commit 42e62bd

File tree

7 files changed

+7
-16
lines changed

7 files changed

+7
-16
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ python:
88
install:
99
- pip install poetry
1010
- poetry install
11-
env:
12-
# PyPIへのアクセス過多などで失敗するケースがあるので、タイムアウトを設定する
13-
- PIP_DEFAULT_TIMEOUT=100
1411
script:
1512
- make lint
1613
- pytest tests/test_local*.py

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: docs lint test format test publish_test publish
1+
.PHONY: docs lint test format test publish
22

33
init:
44
pip install poetry --upgrade

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[AnnoFab Web API](https://annofab.com/docs/api/) のPythonクライアントライブラリです。
33

44
[![Build Status](https://travis-ci.com/kurusugawa-computer/annofab-api-python-client.svg?branch=master)](https://travis-ci.com/kurusugawa-computer/annofab-api-python-client)
5+
[![CodeQL](https://github.com/kurusugawa-computer/annofab-api-python-client/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/kurusugawa-computer/annofab-api-python-client/actions/workflows/codeql-analysis.yml)
56
[![PyPI version](https://badge.fury.io/py/annofabapi.svg)](https://badge.fury.io/py/annofabapi)
67
[![Python Versions](https://img.shields.io/pypi/pyversions/annofabapi.svg)](https://pypi.org/project/annofabapi/)
78

annofabapi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.46.2"
1+
__version__ = "0.46.3"

annofabapi/wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import requests
1616

1717
from annofabapi import AnnofabApi
18+
from annofabapi.api import my_backoff
1819
from annofabapi.exceptions import AnnofabApiException
1920
from annofabapi.models import (
2021
AdditionalData,
@@ -914,6 +915,7 @@ def put_input_data_from_file(
914915
#########################################
915916
# Public Method : Statistics
916917
#########################################
918+
@my_backoff
917919
def _request_location_header_url(self, response: requests.Response) -> Any:
918920
"""
919921
Location headerに記載されているURLの中身を返す。

pyproject.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "annofabapi"
3-
version = "0.46.2"
3+
version = "0.46.3"
44
description = "Python Clinet Library of AnnoFab WebAPI (https://annofab.com/docs/api/)"
55
authors = ["yuji38kwmt"]
66
license = "MIT"
@@ -69,14 +69,9 @@ jedi = "<0.18"
6969
line-length = 120
7070

7171
[tool.isort]
72+
profile = "black"
7273
line_length = 120
7374
skip="annofabapi/__init__.py"
74-
# blackの設定に合わせる
75-
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
76-
multi_line_output=3
77-
include_trailing_comma = true
78-
force_grid_wrap = 0
79-
use_parentheses = true
8075

8176
[build-system]
8277
requires = ["poetry>=0.12"]

tests/test_api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,6 @@ def test_get_project_member(self):
325325
def test_wrapper_get_all_project_members(self):
326326
assert len(wrapper.get_all_project_members(project_id)) >= 0
327327

328-
def test_wrapper_copy_project_member(self):
329-
content = wrapper.copy_project_members(src_project_id=project_id, dest_project_id=project_id, delete_dest=False)
330-
assert type(content) == list
331-
332328

333329
class TestStatistics:
334330
def test_wrapper_statistics(self):

0 commit comments

Comments
 (0)