Skip to content

Commit

Permalink
change quality checks to run on PRs along with pushes (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfiola authored Jul 31, 2024
1 parent c9d846e commit 01a3c16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: quality checks

on: push
on:
push:
pull_request:

jobs:
ruff-lint:
Expand Down
1 change: 0 additions & 1 deletion src/grasshopper/lib/configuration/gh_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ class ConfigurationConstants:
"typecast": typecast_bool,
"default": False,
},

"influx_verify_ssl": {
"opts": ["--influx_verify_ssl"],
"attrs": {
Expand Down
5 changes: 3 additions & 2 deletions src/grasshopper/lib/grasshopper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def log(self) -> None:

@property
def influx_configuration(self) -> dict[str, Optional[Union[bool, str]]]:

"""Extract the influx related configuration items.
The InfluxDbSettings object should only get keys if there is a
Expand Down Expand Up @@ -70,7 +69,9 @@ def influx_configuration(self) -> dict[str, Optional[Union[bool, str]]]:

configuration["ssl"] = self.global_configuration.get("influx_ssl", False)

configuration["verify_ssl"] = self.global_configuration.get("influx_verify_ssl", False)
configuration["verify_ssl"] = self.global_configuration.get(
"influx_verify_ssl", False
)

return configuration

Expand Down
2 changes: 2 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def current_global_defaults():
"cleanup_s3": True,
"slack": False,
"influx": False,
"influx_ssl": False,
"influx_verify_ssl": False,
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_grasshopper_configuration_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def expected_global_defaults():
"cleanup_s3": True,
"slack": False,
"influx": False,
"influx_ssl": False,
"influx_verify_ssl": False,
"report_portal": False,
"rp_launch_name": "Grasshopper Performance Test Run | Launch name unknown",
"rp_launch": "Grasshopper Performance Test Run | Launch name unknown",
Expand Down

0 comments on commit 01a3c16

Please sign in to comment.