Skip to content

Commit

Permalink
Add strict methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cooney committed Nov 5, 2023
1 parent 64c946e commit 22b6ed1
Showing 1 changed file with 70 additions and 23 deletions.
93 changes: 70 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
torch=">=2.1"
wandb=">=0.15.12"

[tool.poetry.group.dev.dependencies]
jupyter=">=1"
plotly=">=5"
poethepoet=">=0.24.2"
pre-commit=">=3.5.0"
pyright=">=1.1.334"
pytest=">=7"
pytest-cov=">=4"
ruff=">=0.1.4"
[tool.poetry.group]
[tool.poetry.group.dev.dependencies]
jupyter=">=1"
plotly=">=5"
poethepoet=">=0.24.2"
pre-commit=">=3.5.0"
pyright=">=1.1.334"
pytest=">=7"
pytest-cov=">=4"
ruff=">=0.1.4"

[tool.poetry.group.demos.dependencies]
jupyterlab=">=3"
pandas=">=2.1.2"
transformer-lens=">=1.9.0"
[tool.poetry.group.demos.dependencies]
jupyterlab=">=3"
pandas=">=2.1.2"
transformer-lens=">=1.9.0"

[tool.poe.tasks]
check=["format", "lint", "test", "typecheck"]
Expand All @@ -44,16 +45,6 @@
[tool.pytest.ini_options]
addopts="""--jaxtyping-packages=sparse_autoencoder,beartype.beartype --doctest-modules"""

[tool.pyright]
deprecateTypingAliases=true
include=["sparse_autoencoder"]
reportIncompatibleMethodOverride=true
reportMissingTypeStubs="warning"
reportUnknownArgumentType="warning"
reportUnknownMemberType="warning"
reportUnknownVariableType="warning"
strict=true

[tool.ruff]
exclude=["*/snapshots/", "/.venv"]
ignore=[
Expand Down Expand Up @@ -89,3 +80,59 @@

[tool.ruff.lint.pylint]
max-args=10

[tool.pyright]
deprecateTypingAliases=true
disableBytesTypePromotions=true
include=["sparse_autoencoder"]
reportAssertAlwaysTrue=true
reportConstantRedefinition=true
reportDeprecated=true
reportDuplicateImport=true
reportFunctionMemberAccess=true
reportGeneralTypeIssues=true
reportIncompatibleMethodOverride=true
reportIncompatibleVariableOverride=true
reportIncompleteStub=true
reportInconsistentConstructor=true
reportInvalidStringEscapeSequence=true
reportInvalidStubStatement=true
reportInvalidTypeVarUse=true
reportMatchNotExhaustive=true
reportMissingParameterType=true
reportMissingTypeArgument=true
reportOptionalCall=true
reportOptionalContextManager=true
reportOptionalIterable=true
reportOptionalMemberAccess=true
reportOptionalOperand=true
reportOptionalSubscript=true
reportOverlappingOverload=true
reportPrivateImportUsage=true
reportPrivateUsage=true
reportSelfClsParameterName=true
reportTypeCommentUsage=true
reportTypedDictNotRequiredAccess=true
reportUnboundVariable=true
reportUnknownLambdaType=true
reportUnknownParameterType=true
reportUnnecessaryCast=true
reportUnnecessaryComparison=true
reportUnnecessaryContains=true
reportUnnecessaryIsInstance=true
reportUnsupportedDunderAll=true
reportUntypedBaseClass=true
reportUntypedClassDecorator=true
reportUntypedFunctionDecorator=true
reportUntypedNamedTuple=true
reportUnusedClass=true
reportUnusedCoroutine=true
reportUnusedExpression=true
reportUnusedFunction=true
reportUnusedImport=true
reportUnusedVariable=true
reportWildcardImportFromLibrary=true
strictDictionaryInference=true
strictListInference=true
strictParameterNoneValue=true
strictSetInference=true

0 comments on commit 22b6ed1

Please sign in to comment.