diff --git a/README.md b/README.md index abad666..3f31fbb 100644 --- a/README.md +++ b/README.md @@ -17,32 +17,28 @@ client = epo_ops.Client(key="abc", secret="xyz") # Retrieve bibliography data. response = client.published_data( - - # publication, application, priority - reference_type="publication", - - # docdb, epodoc - input=epo_ops.models.Docdb("1000000", "EP", "A1"), - - # optional, defaults to biblio in case of published_data - endpoint="biblio", - - # optional, list of constituents - constituents=[], + # publication, application, priority + reference_type="publication", + # docdb, epodoc + input=epo_ops.models.Docdb("1000000", "EP", "A1"), + # optional, defaults to biblio in case of published_data + endpoint="biblio", + # optional, list of constituents + constituents=[], ) # Retrieve description. response = client.published_data( - reference_type="publication", - input=epo_ops.models.Docdb("1000000", "EP", "A1"), - endpoint="description", + reference_type="publication", + input=epo_ops.models.Docdb("1000000", "EP", "A1"), + endpoint="description", ) # Retrieve claims. response = client.published_data( - reference_type="publication", - input=epo_ops.models.Docdb("1000000", "EP", "A1"), - endpoint="claims", + reference_type="publication", + input=epo_ops.models.Docdb("1000000", "EP", "A1"), + endpoint="claims", ) ``` @@ -134,8 +130,8 @@ middlewares = [ epo_ops.middlewares.Throttler(), ] client = epo_ops.Client( - key='key', - secret='secret', + key="key", + secret="secret", middlewares=middlewares, ) ``` diff --git a/pyproject.toml b/pyproject.toml index c816df0..346c460 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,15 +80,15 @@ lint.mccabe.max-complexity = 7 [tool.pytest] ini_options.minversion = "2.0" +ini_options.testpaths = [ "tests" ] ini_options.addopts = """ -rsfEX -p pytester --strict-markers --verbosity=3 --cov=epo_ops tests --cov-report=term-missing --cov-report=xml """ +ini_options.markers = [] +ini_options.xfail_strict = true ini_options.log_level = "DEBUG" ini_options.log_cli_level = "DEBUG" -ini_options.testpaths = [ "tests" ] -ini_options.xfail_strict = true -ini_options.markers = [] [tool.versioningit] vcs.method = "git-archive" diff --git a/setup.py b/setup.py index 581b729..6576b67 100644 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ extras_require={ "develop": [ "pyproject-fmt<3", - "ruff<0.17; python_version >= '3.7'", + "ruff==0.17.*; python_version >= '3.7'", "twine<8", "wheel<1", ],