Skip to content

Commit 4e30602

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3af92b0 commit 4e30602

File tree

7 files changed

+26
-19
lines changed

7 files changed

+26
-19
lines changed

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,4 @@
147147
"ignore_pattern": r"__init__\.py",
148148
"thumbnail_size": (350, 350),
149149
"copyfile_regex": r".*\.rst",
150-
}
150+
}
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
[build-system]
2-
requires = ["flit_core >=3.2,<4"]
32
build-backend = "flit_core.buildapi"
3+
requires = [ "flit-core>=3.2,<4" ]
44

55
[project]
6-
name = "example_httpserver_plugin"
7-
authors = [{name = "ANSYS, Inc.", email = "[email protected]"}]
8-
dynamic = ["version", "description"]
9-
dependencies = ["ansys-tools-local-product-launcher", "requests"]
6+
name = "example-httpserver-plugin"
7+
authors = [ { name = "ANSYS, Inc.", email = "[email protected]" } ]
8+
classifiers = [
9+
"Programming Language :: Python :: 3 :: Only",
10+
"Programming Language :: Python :: 3.10",
11+
"Programming Language :: Python :: 3.11",
12+
"Programming Language :: Python :: 3.12",
13+
"Programming Language :: Python :: 3.13",
14+
"Programming Language :: Python :: 3.14",
15+
]
16+
dynamic = [ "description", "version" ]
17+
dependencies = [ "ansys-tools-local-product-launcher", "requests" ]
1018

11-
[project.entry-points."ansys.tools.local_product_launcher.launcher"]
12-
"example_httpserver.direct" = "example_httpserver_plugin:Launcher"
13-
"example_httpserver.__fallback__" = "example_httpserver_plugin:Launcher"
19+
entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.__fallback__" = "example_httpserver_plugin:Launcher"
20+
entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.direct" = "example_httpserver_plugin:Launcher"

examples/local_launcher/example_httpserver_plugin/src/example_httpserver_plugin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#

examples/local_launcher/example_httpserver_plugin/src/example_httpserver_plugin/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#

examples/local_launcher/example_scripts/cli_configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#

examples/local_launcher/example_scripts/py_configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022 - 2025 ANSYS, Inc. and/or its affiliates.
1+
# Copyright (C) 2025 ANSYS, Inc. and/or its affiliates.
22
# SPDX-License-Identifier: MIT
33
#
44
#

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ tests = [
5656
"grpcio==1.76.0",
5757
"grpcio-health-checking==1.76.0",
5858
"hypothesis==6.148.0",
59+
"mypy==1.18.2",
60+
"mypy-extensions==1.1.0",
5961
"pyfakefs==5.10.2",
6062
"pytest==9.0.1",
6163
"pytest-cov==7.0.0",
62-
"mypy==1.18.2",
63-
"mypy-extensions==1.1.0",
6464
]
6565

6666
doc = [
@@ -103,10 +103,6 @@ lint.isort.known-first-party = [ "ansys" ]
103103
# Settings: https://docs.astral.sh/ruff/settings/#lintpydocstyle
104104
lint.pydocstyle.convention = "numpy"
105105

106-
[tool.mypy]
107-
python_version = "3.10"
108-
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/tests:$MYPY_CONFIG_FILE_DIR/examples/example_httpserver_plugin/src"
109-
110106
[tool.pytest.ini_options]
111107
addopts = "-ra --cov=ansys.tools.common --cov-report html:.cov/html --cov-report xml:.cov/xml --cov-report term --capture=sys -vv"
112108

@@ -158,3 +154,7 @@ showcontent = true
158154
directory = "test"
159155
name = "Test"
160156
showcontent = true
157+
158+
[tool.mypy]
159+
python_version = "3.10"
160+
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/tests:$MYPY_CONFIG_FILE_DIR/examples/example_httpserver_plugin/src"

0 commit comments

Comments
 (0)