Skip to content

Commit

Permalink
Customise isort sections
Browse files Browse the repository at this point in the history
Add custom sections for hail and CPG-local imports.
Same line length as for other linters, and add a template for listing
submodules etc that should not be linted or edited.
  • Loading branch information
jmarshall committed Jan 9, 2024
1 parent 4b135d6 commit e45dde9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ skip-string-normalization = true
[tool.isort]
py_version = 311
profile = "black"
line_length = 88
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "HAIL", "CPG", "FIRSTPARTY", "LOCALFOLDER"]
known_hail = [
"hail",
"hailtop",
]
# Adjust these for each repository, e.g., removing those that should be
# local rather than CPG. Also fill in extend_skip below if there are any
# subdirectories that should be ignored.
known_cpg = [
"analysis_runner",
"cpg_infra",
"cpg_utils",
"cpg_workflows",
"gnomad",
"hail_scripts",
"metamist",
]
# extend_skip = ["list", "submodules", "etc", here"]

[tool.ruff]
line-length = 88
Expand Down

0 comments on commit e45dde9

Please sign in to comment.