Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update config
  • Loading branch information
Borda committed Jan 25, 2023
commit 10af7cdf0f7129ee75ddd50f1d18d9cbcf004503
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ def _convert_to_features(self, example_batch: datasets.arrow_dataset.Batch) -> B
# %%
class RteBoolqModule(pl.LightningModule):
"""A ``LightningModule`` that can be used to fine-tune a foundational model on either the RTE or BoolQ
SuperGLUE tasks using Hugging Face implementations of a given model and the `SuperGLUE Hugging Face dataset.
"""
SuperGLUE tasks using Hugging Face implementations of a given model and the `SuperGLUE Hugging Face dataset."""

def __init__(
self,
Expand Down
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ line-length = 120
select = [
"E", "W", # see: https://pypi.org/project/pycodestyle
"F", # see: https://pypi.org/project/pyflakes
"D", # see: https://pypi.org/project/pydocstyle
"N", # see: https://pypi.org/project/pep8-naming
# "D", # see: https://pypi.org/project/pydocstyle
# "N", # see: https://pypi.org/project/pep8-naming
]
#extend-select = [
# "C4", # see: https://pypi.org/project/flake8-comprehensions
Expand All @@ -66,6 +66,8 @@ select = [
#]
ignore = [
"E731", # Do not assign a lambda expression, use a def
# TODO: we shall format all long comments as it comes from text cells
"E501", # Line too long
]
# Exclude a variety of commonly ignored directories.
exclude = [
Expand All @@ -89,8 +91,8 @@ ignore-init-module-imports = true
# Use Google-style docstrings.
convention = "google"

#[tool.ruff.pycodestyle]
#ignore-overlong-task-comments = true
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true

[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
Expand Down