Skip to content

Commit

Permalink
refactor ruff linting options
Browse files Browse the repository at this point in the history
  • Loading branch information
nevoodoo committed Dec 16, 2024
1 parent f75440e commit a2487ee
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 75 deletions.
52 changes: 3 additions & 49 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"cpg-utils>=5.1.1",
"hail>=0.2.133",
]
dependencies = ["cpg-utils>=5.1.1", "hail>=0.2.133"]

[tool.uv]
dev-dependencies = [
Expand All @@ -20,7 +17,7 @@ dev-dependencies = [
[tool.uv.sources]

[project.urls]
Repository = "https://github.com/populationgenomics/cpg-flow"
Repository = "https://github.com/populationgenomics/test_workflows_shared"

[tool.ruff]
line-length = 120
Expand Down Expand Up @@ -71,51 +68,9 @@ select = [
"YTT",
]

fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ANN",
"ARG",
"BLE",
"COM",
"DJ",
"DTZ",
"ERA",
"EXE",
"FBT",
"ICN",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"UP",
"YTT",
]
fixable = ["ALL"]

ignore = [
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN201", # Missing return type annotation for public function
"ANN204", # Missing type annotation for special method `__init__`
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
Expand Down Expand Up @@ -240,7 +195,6 @@ ignore = [
"PD003",
"SIM117",
"RUF002",
"UP027",
"SIM105",
"E713",
"S324",
Expand Down
52 changes: 26 additions & 26 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2487ee

Please sign in to comment.