generated from ApolloResearch/sample
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
89 lines (80 loc) · 1.74 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[project]
name = "simple_stories_train"
version = "0.0.1"
description = "Training of small LM models for SimpleStories"
requires-python = ">=3.11"
readme = "README.md"
dependencies = [
"torch",
"torchvision",
"pydantic",
"wandb",
"fire",
"tqdm",
"pytest",
"ipykernel",
"jaxtyping",
"tiktoken",
"transformers",
"datasets",
"python-dotenv",
]
[project.optional-dependencies]
dev = [
"ruff",
"pyright",
"pre-commit",
]
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["simple_stories_train"]
[tool.ruff]
line-length = 100
fix = true
ignore = [
"F722" # Incompatible with jaxtyping
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.ruff.format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
[tool.ruff.isort]
known-third-party = ["wandb"]
[tool.pyright]
include = ["simple_stories_train", "tests"]
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
reportFunctionMemberAccess = true
reportUnknownParameterType = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportInconsistentConstructorType = true
reportOverlappingOverload = true
reportConstantRedefinition = true
reportImportCycles = true
reportPropertyTypeMismatch = true
reportMissingTypeArgument = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportUnusedExpression = true
reportMatchNotExhaustive = true
reportShadowedImports = true
reportPrivateImportUsage = false