Skip to content

Commit 4598fd9

Browse files
committed
Fixed some lint issues
1 parent 9920734 commit 4598fd9

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Changelog
77
### Internal changes
88

99
- updated dependencies
10+
- fixed some lint issues in shell scripts and `setup.py`
1011

1112
[0.5.0](../../releases/tag/v0.5.0) - 2021-09-16
1213
-----------------------------------------------

docs/res/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
cd "$( dirname "${BASH_SOURCE[0]}" )"
5+
cd "$(dirname "${BASH_SOURCE[0]}")"
66

77
sphinx-build -M markdown sphinx-config build -a -E
88

docs/res/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NEW_MD5=$(md5sum ../docs.md | cut -f 1 -d " ")
1313
mv ../old_docs.md ../docs.md
1414

1515

16-
if [ $BUILD_STATUS -ne 0 ]; then
16+
if [[ ${BUILD_STATUS} -ne 0 ]]; then
1717
echo "Building docs failed!" >&2
1818
exit 1
1919
fi

format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env /bin/bash
1+
#!/usr/bin/env bash
22

33
set -o errexit
44

lint_and_test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ unit_tests() {
2222
}
2323

2424

25-
if [ "$checks_to_run" = "lint" ] ; then
25+
if [[ "${checks_to_run}" = "lint" ]] ; then
2626
lint
27-
elif [ "$checks_to_run" = "types" ] ; then
27+
elif [[ "${checks_to_run}" = "types" ]] ; then
2828
type_check
29-
elif [ "$checks_to_run" = "tests" ] ; then
29+
elif [[ "${checks_to_run}" = "tests" ]] ; then
3030
unit_tests
31-
elif [ "$checks_to_run" = "everything" ] ; then
31+
elif [[ "${checks_to_run}" = "everything" ]] ; then
3232
lint
3333
type_check
3434
unit_tests
3535
else
36-
echo "Invalid type of test ($checks_to_run) requested. Use lint / types / tests or leave empty to run all tests"
36+
echo "Invalid type of test (${checks_to_run}) requested. Use lint / types / tests or leave empty to run all tests"
3737
exit 1
3838
fi
3939

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
version = line.split(delim)[1]
1515
break
1616
else:
17-
raise RuntimeError("Unable to find version string.")
17+
raise RuntimeError('Unable to find version string.')
1818

1919
setup(
2020
name='apify_client',
2121
version=version,
2222

23-
author="Apify Technologies s.r.o.",
24-
author_email="[email protected]",
25-
url="https://github.com/apify/apify-client-python",
23+
author='Apify Technologies s.r.o.',
24+
author_email='[email protected]',
25+
url='https://github.com/apify/apify-client-python',
2626
project_urls={
2727
'Documentation': 'https://docs.apify.com/apify-client-python',
2828
'Source': 'https://github.com/apify/apify-client-python',
@@ -37,9 +37,9 @@
3737
long_description_content_type='text/markdown',
3838

3939
classifiers=[
40-
"Programming Language :: Python :: 3",
41-
"License :: OSI Approved :: Apache Software License",
42-
"Operating System :: OS Independent",
40+
'Programming Language :: Python :: 3',
41+
'License :: OSI Approved :: Apache Software License',
42+
'Operating System :: OS Independent',
4343
'Intended Audience :: Developers',
4444
'Topic :: Software Development :: Libraries',
4545
],

0 commit comments

Comments
 (0)