Skip to content

Commit

Permalink
Bump psf/black from 23.10.1 to 24.4.2 (#125)
Browse files Browse the repository at this point in the history
* Bump psf/black from 23.10.1 to 24.4.2

Bumps [psf/black](https://github.com/psf/black) from 23.10.1 to 24.4.2.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.10.1...24.4.2)

---
updated-dependencies:
- dependency-name: psf/black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump psf/black from 23.10.1 to 24.4.2

Bumps [psf/black](https://github.com/psf/black) from 23.10.1 to 24.4.2.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.10.1...24.4.2)

---
updated-dependencies:
- dependency-name: psf/black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update black.yml

* Update source formatting using black 24.4.2

* Update source formatting using black 24.4.2

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Huska, Matthew <[email protected]>
  • Loading branch information
dependabot[bot] and matthuska authored Jul 2, 2024
1 parent 58c22ea commit 1809a64
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@23.10.1
- uses: psf/black@24.4.2
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ repos:
- --black-line-length=79

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
rev: 24.4.2
hooks:
- id: black
6 changes: 3 additions & 3 deletions lib/sonartoVCF_v2.bak.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
splited_final_id_list, start=1
):
if splited_final_id == id: # find the exist one
final_df.at[
index_start_postion, group_name
] = new_GT
final_df.at[index_start_postion, group_name] = (
new_GT
)
break
elif (
totel_len == new_GT
Expand Down
18 changes: 9 additions & 9 deletions lib/sonartoVCF_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
index=np.arange(1, 29904),
)
final_snp_df["POS"] = np.arange(1, 29904)
final_snp_df[
"#CHROM"
] = refdescr # duplicated line here did a trick for assigning the value
final_snp_df["#CHROM"] = (
refdescr # duplicated line here did a trick for assigning the value
)
final_snp_df["ID"] = "."
final_snp_df["REF"] = "."
final_snp_df["ALT"] = "."
Expand Down Expand Up @@ -294,9 +294,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
# print('index',index_postion,'test', splited_ID, _E_new_GT)
if splited_ID == _id: # Found the exist one
# print('Found the exist one', splited_final_id)
final_indel_df.at[
index_postion, group_name
] = str(_E_new_GT)
final_indel_df.at[index_postion, group_name] = (
str(_E_new_GT)
)
break
elif (
totel_len == _E_new_GT
Expand All @@ -307,9 +307,9 @@ def create_vcf(rows_grouped, tmp_dirname, refdescr):
+ _id
)
# with new GT number
final_indel_df.at[
index_postion, group_name
] = str(_E_new_GT + 1)
final_indel_df.at[index_postion, group_name] = (
str(_E_new_GT + 1)
)
# appends new alt
final_indel_df.at[index_postion, "ALT"] = (
final_indel_df.at[index_postion, "ALT"]
Expand Down

0 comments on commit 1809a64

Please sign in to comment.