Skip to content

Commit 8bb9a1b

Browse files
committed
Linting fix
1 parent 7eb8ca3 commit 8bb9a1b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

libraries/cloudharness-common/cloudharness/applications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def get_db_connection_string(self, **kwargs) -> str:
4242
elif self.db_type == 'postgres':
4343
database_name = kwargs.get('database_name', self.harness.database.postgres['initialdb'])
4444
return f"postgres://{self.db_name}:{self.harness.database.postgres.ports[0]['port']}/" \
45-
f"{database_name}?user={self.harness.database.user}&password={self.harness.database['pass']}"
45+
f"{database_name}?user={self.harness.database.user}&password={self.harness.database['pass']}"
4646
elif self.db_type == 'neo4j':
4747
return f"{self.harness.database.neo4j.get('ports')[1]['name']}://{self.db_name}:" \
48-
f"{self.harness.database.neo4j.get('ports')[1]['port']}/"
48+
f"{self.harness.database.neo4j.get('ports')[1]['port']}/"
4949
else:
5050
raise NotImplementedError(
5151
f'Database connection string discovery not yet supported for database type {self.db_type}')

lint-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ diff_output=$(python -m autopep8 --select=E1,E2,E3,W,E4,E7,E502 --recursive --d
55
if [ -n "$diff_output" ]; then
66
printf "%s\n" "$diff_output"
77
echo "Code style issues found in the above files. To fix you can run: "
8-
echo "autopep8 --select=E1,E2,E3,W,E4,E7,E502 --recursive --in-place --exclude '**/cloudharness_cli/**/*,**/models/*,**/model/*'"
8+
echo "autopep8 --select=E1,E2,E3,W,E4,E7,E502 --recursive --in-place --exclude '**/cloudharness_cli/**/*,**/models/*,**/model/*' ."
99
exit 1
1010
fi

0 commit comments

Comments
 (0)