Skip to content

Commit

Permalink
Add ruff format (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: Merel Theisen <[email protected]>
  • Loading branch information
merelcht authored Jan 16, 2024
1 parent df36150 commit 97deddf
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -61,4 +64,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,4 +8,4 @@ kedro-telemetry>=0.3.1
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
5 changes: 4 additions & 1 deletion databricks-iris/{{ cookiecutter.repo_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -61,4 +64,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,4 +8,4 @@ numpy~=1.21
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -63,4 +66,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,6 +8,6 @@ kedro-viz>=6.7.0
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
scikit-learn~=1.0
seaborn~=0.12.1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -63,4 +66,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,5 +8,5 @@ kedro-viz>=6.7.0
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
scikit-learn~=1.0
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -63,4 +66,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,6 +8,6 @@ kedro-viz>=6.7.0
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
scikit-learn~=1.0
seaborn~=0.12.1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
Expand All @@ -63,4 +66,4 @@ select = [
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Black takes care of line-too-long
ignore = ["E501"] # Ruff format takes care of line-too-long
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
black~=22.0
ipython>=8.10
jupyterlab>=3.0
notebook
Expand All @@ -9,5 +8,5 @@ kedro-viz>=6.7.0
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.0.290
ruff~=0.1.8
scikit-learn~=1.0
3 changes: 1 addition & 2 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
bandit>=1.6.2, <2.0
behave>=1.2.6, <2.0
black~=22.0
PyYAML>=4.2, <7.0
ruff~=0.0.290
ruff~=0.1.8
git+https://github.com/kedro-org/kedro.git@main#egg=kedro

0 comments on commit 97deddf

Please sign in to comment.