diff --git a/.gitignore b/.gitignore index 5efc6b31d..d8caf99a9 100644 --- a/.gitignore +++ b/.gitignore @@ -78,7 +78,6 @@ target/ # poetry poetry.lock -pyproject.toml # celery beat schedule file celerybeat-schedule diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..1884a6b37 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[build-system] +requires = ["setuptools>=45.0", "versioneer-518", "wheel"] +build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 120 +target-version = ['py37', 'py38', 'py39', 'py310'] + +[tool.mypy] +disable_error_code = [ + 'misc', + 'import' +] +files = [ + "tableauserverclient", + "test" +] +show_error_codes = true diff --git a/tableauserverclient/server/endpoint/datasources_endpoint.py b/tableauserverclient/server/endpoint/datasources_endpoint.py index cb5600938..022523aa4 100644 --- a/tableauserverclient/server/endpoint/datasources_endpoint.py +++ b/tableauserverclient/server/endpoint/datasources_endpoint.py @@ -339,7 +339,7 @@ def update_hyper_data( *, request_id: str, actions: Sequence[Mapping], - payload: Optional[FilePath] = None + payload: Optional[FilePath] = None, ) -> JobItem: if isinstance(datasource_or_connection_item, DatasourceItem): datasource_id = datasource_or_connection_item.id