Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 8668acf commit cc34dc2
Show file tree
Hide file tree
Showing 48 changed files with 52 additions and 6 deletions.
1 change: 1 addition & 0 deletions alembic/versions/1979f223bfbc_add_snap_feng_init_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-02 23:18:16.685003+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-10-31 20:16:25.669383+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/1bf3ac824a22_redo_correlator_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-13 23:40:03.485505+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/38aa03a7c923_add_weather_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-11-15 03:03:15.497948+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-01-23 19:21:58.068257+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-01-20 21:35:16.716477+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-08-04 14:01:16.107299+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy import text
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/40a641ef2f52_add_node_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-08-30 20:02:26.339879+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/4653b4902dc0_add_subsystem_error_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-07-27 19:06:41.684018+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/50c966c5427a_more_antenna_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-07-19 19:59:08.371361+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/5b141f32ea38_remove_bad_autoincrements.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-07-27 22:51:11.172610+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy import text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-04-02 18:51:00.603761+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-09-30 16:22:30.118641+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/63b625cf7b06_add_white_rabbit_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-12-06 02:45:01.418693+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/64bc793c6237_added_dubitable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-12-04 04:55:03.111502+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/64c7a405e4c8_add_corr_config_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-11-27 03:22:19.564250+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/67e70aa050ed_more_snap_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-19 17:46:45.063811+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-12-30 20:56:04.518300+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/7463268309ab_add_part_rosetta_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-08-19 22:15:42.200290+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-01-15 21:26:15.737527+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/8e7282ae4840_updated_rtp_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-08-13 18:06:40.892734+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-07-27 00:13:29.765073+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.schema import CreateSequence, Sequence
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/9460cc78cb50_add_correlator_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-11-01 17:34:57.968829+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-08-26 20:39:46.644181+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/a3d144cdc527_add_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-08-08 23:49:22.439468+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-04-16 03:08:40.531643+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/a68c0e31204e_onsite_baseline_july_2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-07-13 01:51:59.044973+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-08 18:28:01.332525+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-11-25 20:34:47.384076+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/b1063869f198_bring_up_to_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-07-14 02:46:54.173568
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/bad90ab035ba_add_rtplaunchrecord_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-03-08 19:16:44.611253+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/bb6db4d3fee6_add_rtp_tracking_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-02-18 21:10:33.076138+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/c0985153bf41_add_cm_version_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-08-19 01:57:48.642443+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/c4c88519fb71_fft_overflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2020-06-12 22:52:29.674506+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-01-31 17:24:19.740926+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-12-15 18:50:37.889271+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/d208118c58d0_add_ant_status_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-03-23 00:10:30.704936+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/d2f22cbd4c5a_add_ant_metric_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-01-14 22:49:15.514872+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/d81ba81442a3_add_tag_to_hera_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-08-08 19:23:16.626341+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2018-01-30 01:02:58.347378+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/e66c069eb92b_adding_qm_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-08-04 23:04:23.097038+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-11-03 17:40:45.108617+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/edecd502cdd8_add_daemon_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Create Date: 2019-07-10 22:50:31.279677+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions alembic/versions/f29adafca107_add_roach_temp_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2017-12-09 19:59:50.058296+00:00
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions alembic/versions/fb372bb87c37_add_snap_status_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2019-03-19 22:32:13.745440+00:00
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
1 change: 1 addition & 0 deletions hera_mc/cm_gen_sqlite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Methods to check and update the database files for sqlite."""

import json
import os.path
import re
Expand Down
6 changes: 3 additions & 3 deletions hera_mc/cm_hookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ def get_notes(self, hookup_dict, state="all", return_dict=False):
"ref": entry.reference,
}
else:
hu_notes[hkey][ikey][
entry.posting_gpstime
] = entry.comment.replace("\\n", "\n")
hu_notes[hkey][ikey][entry.posting_gpstime] = (
entry.comment.replace("\\n", "\n")
)
return hu_notes

def show_notes(self, hookup_dict, state="all"):
Expand Down
6 changes: 3 additions & 3 deletions hera_mc/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def setup_and_teardown_package():
)[-1]
sqlite_dir, sqlite_basename = os.path.split(sqlite_filename)
if not os.path.exists(sqlite_dir):
config_data["databases"]["sqlite_testing"][
"url"
] = "sqlite:///" + os.path.join(DATA_PATH, "test_data", sqlite_basename)
config_data["databases"]["sqlite_testing"]["url"] = (
"sqlite:///" + os.path.join(DATA_PATH, "test_data", sqlite_basename)
)
with open(config_path, "w") as fp:
json.dump(config_data, fp)

Expand Down

0 comments on commit cc34dc2

Please sign in to comment.