Skip to content

Commit 6525b21

Browse files
authored
Merge pull request #25 from 23andMe/sync-minor-changes
Sync minor changes
2 parents f9a177c + bac473e commit 6525b21

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ default_stages: [commit, merge-commit]
22
fail_fast: true
33
repos:
44
- repo: [email protected]:PyCQA/isort.git
5-
rev: 5.12.0
5+
rev: 5.13.2
66
hooks:
77
- id: isort
88
- repo: [email protected]:psf/black.git
9-
rev: 23.11.0
9+
rev: 23.12.1
1010
hooks:
1111
- id: black
1212
- repo: [email protected]:pre-commit/pre-commit-hooks.git
@@ -18,7 +18,7 @@ repos:
1818
- id: trailing-whitespace
1919
exclude: tests/fixtures/output/haplogroups\..*\.txt|data/variants/isogg\.[0-9]{4}\.[0-9]{2}\.[0-9]{2}\.txt
2020
- repo: [email protected]:PyCQA/flake8.git
21-
rev: 6.1.0
21+
rev: 7.0.0
2222
hooks:
2323
- id: flake8
2424
- repo: [email protected]:PyCQA/pydocstyle.git
@@ -28,7 +28,7 @@ repos:
2828
additional_dependencies: [tomli]
2929
exclude: tests/
3030
- repo: [email protected]:pre-commit/mirrors-mypy.git
31-
rev: v1.7.1
31+
rev: v1.8.0
3232
hooks:
3333
- id: mypy
3434
additional_dependencies: [pandas-stubs,types-PyYAML,types-tabulate]

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ dev-pyenv-virtualenv: ## Set up pyenv-virtual-env-based development environment
2727
pyenv local $(ENV_NAME)
2828
pip install --upgrade pip setuptools wheel
2929
$(MAKE) dev-install
30+
$(MAKE) dev-jupyter
3031
$(MAKE) init-hooks
3132

3233
dev-install: ## Install package as editable, with all optional dependencies
3334
pip install --editable .[dev]
35+
36+
dev-jupyter: ## Add Jupyter kernel
3437
python -m ipykernel install --user --name $(ENV_NAME) --display-name $(PACKAGE_NAME)
3538

3639

yhaplo/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class Config:
104104

105105
# 23andMe: Platform positions
106106
platform_pos_data_subdir = "platform"
107-
platform_pos_data_filename_tp = "{platform}.b37.positions.txt"
108-
platform_qc_exclude_data_filename_tp = "{platform}.b37.qc.exclude.txt"
107+
platform_pos_fn_tp = "{platform}.b37.positions.txt"
108+
platform_qc_exclude_fn_tp = "{platform}.b37.qc.exclude.txt"
109109

110110
# Example input files
111111
# ----------------------------------------------------------------------

yhaplo/snp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,15 +272,15 @@ def build_platform_to_pos_set() -> dict[str, set[int]]:
272272
for platform in Config.platforms:
273273
platform_pos_data_file = DataFile(
274274
Config.platform_pos_data_subdir,
275-
Config.platform_pos_data_filename_tp.format(platform=platform),
275+
Config.platform_pos_fn_tp.format(platform=platform),
276276
f"Platform {platform} SNP positions",
277277
ttam_only=True,
278278
)
279279
pos_set = load_position_set(platform_pos_data_file)
280280

281281
platform_pos_exclude_data_file = DataFile(
282282
Config.platform_pos_data_subdir,
283-
Config.platform_qc_exclude_data_filename_tp.format(platform=platform),
283+
Config.platform_qc_exclude_fn_tp.format(platform=platform),
284284
f"Platform {platform} SNP QC exclusions table",
285285
ttam_only=True,
286286
)

0 commit comments

Comments
 (0)