-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71b57cc
commit ce93f31
Showing
6 changed files
with
807 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.0.262' | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.unittestEnabled": false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# w2s | ||
# w2s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "w2s" | ||
description = "Experimenting with weak-to-strong generalization in deep learning" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
keywords = ["ai", "interpretability", "generalization"] | ||
license = {text = "MIT License"} | ||
dependencies = [ | ||
"datasets", | ||
"torch", | ||
# 4.0 introduced the breaking change of using return_dict=True by default | ||
"transformers>=4.0.0", | ||
] | ||
version = "0.0.1" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pre-commit", | ||
] | ||
|
||
[tool.pyright] | ||
include = ["w2s*"] | ||
reportPrivateImportUsage = false | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["w2s*"] | ||
|
||
[tool.ruff] | ||
# Enable pycodestyle (`E`), Pyflakes (`F`), and isort (`I`) codes | ||
# See https://beta.ruff.rs/docs/rules/ for more possible rules | ||
select = ["E", "F", "I"] | ||
# Same as Black. | ||
line-length = 88 | ||
# Avoid automatically removing unused imports in __init__.py files. | ||
# Such imports will be flagged with a dedicated message suggesting | ||
# that the import is either added to the module's __all__ symbol | ||
ignore-init-module-imports = true |
Empty file.
Oops, something went wrong.