Skip to content

Commit

Permalink
Fix the failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Feb 7, 2024
1 parent e4bd043 commit ed2944a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ select = [
"I001", # isort
]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.isort]
[tool.ruff.lint.isort]
# Use a single line between direct and from import
lines-between-types = 1

Expand Down
2 changes: 1 addition & 1 deletion src/scicookie/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(


def _get_cookiecutter_default_answer(
answer_definition: Union[str, list]
answer_definition: Union[str, list],
) -> str:
if not isinstance(answer_definition, (str, list)):
SciCookieLogs.raise_error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,22 @@ src = ["./"]
exclude = [
'docs',
]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"YTT", # flake8-2020
"RUF", # Ruff-specific rules
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"YTT", # flake8-2020
"RUF", # Ruff-specific rules
"I001", # isort
]
fixable = ["I001"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.isort]
[tool.ruff.lint.isort]
# Use a single line between direct and from import
lines-between-types = 1
{% endif %}
Expand Down

0 comments on commit ed2944a

Please sign in to comment.