Skip to content

Commit babef9f

Browse files
committed
Ruff settings
1 parent 3aab256 commit babef9f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,18 @@ extend = "ruff_defaults.toml"
9494
line-length = 79
9595
indent-width = 4
9696
target-version = "py37"
97+
[tool.ruff.lint]
98+
preview = true
99+
ignore = [
100+
"S101",
101+
]
97102
[tool.ruff.lint.flake8-tidy-imports]
98103
ban-relative-imports = "parents"
99104
[tool.ruff.lint.per-file-ignores]
100105
"**/tests/**/*" = [
101106
"PLR2004",
102107
"SLF001",
108+
"S101",
103109
]
104110

105111
[tool.mypy]

ruff_defaults.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ docstring-code-format = true
55
docstring-code-line-length = 80
66

77
[lint]
8-
preview = true
9-
108
select = [
119
"A001",
1210
"A002",
@@ -471,6 +469,7 @@ select = [
471469
"RUF029",
472470
"RUF100",
473471
"RUF101",
472+
"S101",
474473
"S102",
475474
"S103",
476475
"S104",
@@ -670,7 +669,7 @@ select = [
670669
ban-relative-imports = "all"
671670

672671
[lint.isort]
673-
known-first-party = ["modelmachine"]
672+
known-first-party = ["hatch"]
674673

675674
[lint.flake8-pytest-style]
676675
fixture-parentheses = false

0 commit comments

Comments
 (0)