Skip to content

Commit d00e2a3

Browse files
committed
fix ruff
1 parent fc88ddc commit d00e2a3

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

appium/version.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
def _get_version():
2-
from importlib.metadata import version
1+
#!/usr/bin/env python
32

4-
return version('Appium-Python-Client')
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from importlib.metadata import version
516

17+
def _get_version():
18+
return version('Appium-Python-Client')
619

720
version = _get_version()

script/release.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"""Release script to publish release module to pipy."""
1515

1616
import glob
17-
import io
1817
import os
1918
import shutil
2019
import subprocess

0 commit comments

Comments
 (0)