|
| 1 | +[build-system] |
| 2 | +requires = ["flit_core >=3.2,<4"] |
| 3 | +build-backend = "flit_core.buildapi" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "chex" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "Chex: Testing made fun, in JAX!" |
| 9 | +readme = "README.md" |
| 10 | +license = { file = "LICENSE" } |
| 11 | +requires-python = ">=3.11" |
| 12 | +authors = [ |
| 13 | + {name = "Google DeepMind", email = "chex-dev@google.com"}, |
| 14 | +] |
| 15 | +keywords = [ |
| 16 | + "jax", |
| 17 | + "testing", |
| 18 | + "debugging", |
| 19 | + "python", |
| 20 | + "machine learning", |
| 21 | +] |
| 22 | +classifiers = [ |
| 23 | + "Environment :: Console", |
| 24 | + "Programming Language :: Python", |
| 25 | + "Intended Audience :: Developers", |
| 26 | + "Operating System :: OS Independent", |
| 27 | + "Programming Language :: Python :: 3", |
| 28 | + "Intended Audience :: Science/Research", |
| 29 | + "Development Status :: 4 - Beta", |
| 30 | + "License :: OSI Approved :: Apache Software License", |
| 31 | + "Topic :: Scientific/Engineering :: Artificial Intelligence", |
| 32 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 33 | +] |
| 34 | +dependencies = [ |
| 35 | + "absl-py>=2.3.1", |
| 36 | + "typing_extensions>=4.15.0", |
| 37 | + "jax>=0.7.0", |
| 38 | + "jaxlib>=0.7.0", |
| 39 | + "numpy>=1.24.1", |
| 40 | + "toolz>=1.0.0", |
| 41 | +] |
| 42 | + |
| 43 | +[project.urls] |
| 44 | +homepage = "https://github.com/google-deepmind/chex" |
| 45 | +repository = "https://github.com/google-deepmind/chex" |
| 46 | +documentation = "https://chex.readthedocs.io/" |
| 47 | + |
| 48 | +[project.optional-dependencies] |
| 49 | +test = [ |
| 50 | + "cloudpickle==3.1.0", |
| 51 | + "dm-tree>=0.1.9", |
| 52 | +] |
| 53 | + |
| 54 | +docs = [ |
| 55 | + "sphinx>=6.0.0", |
| 56 | + "sphinx-book-theme>=1.0.1", |
| 57 | + "sphinxcontrib-katex", |
| 58 | +] |
| 59 | + |
| 60 | +[tool.setuptools.packages.find] |
| 61 | +include = ["README.md", "LICENSE"] |
| 62 | +exclude = ["*_test.py"] |
| 63 | + |
| 64 | +[tool.ruff] |
| 65 | +line-length = 80 |
| 66 | + |
| 67 | +[tool.ruff.lint] |
| 68 | +select = [ |
| 69 | + "F", |
| 70 | + "E", |
| 71 | + "W291", # whitespace at the end of the line |
| 72 | + "B023", # pylint's cell-var-over-loop, closures capturing variables in loop |
| 73 | +] |
| 74 | +ignore = [ |
| 75 | + "E731", # lambdas are allowed |
| 76 | + "F401", # allow unused imports |
| 77 | + "E402", # allow modules not at top of file |
| 78 | + "E741", # allow "l" as a variable name |
| 79 | + "E703", # allow semicolons (for jupyter notebooks) |
| 80 | +] |
| 81 | + |
| 82 | +[tool.pylint.messages_control] |
| 83 | +disable = [ |
| 84 | + "bad-indentation", |
| 85 | + "unknown-option-value", |
| 86 | + "invalid-name", |
| 87 | + "missing-function-docstring", |
| 88 | + "missing-class-docstring", |
| 89 | + "missing-module-docstring", |
| 90 | + "no-member", |
| 91 | + "too-many-locals", |
| 92 | + "too-many-positional-arguments", |
| 93 | + "no-else-return", |
| 94 | + "line-too-long", |
| 95 | + "too-many-arguments", |
| 96 | + "no-value-for-parameter", |
| 97 | + "duplicate-code", |
| 98 | + "unused-argument", |
| 99 | + "too-few-public-methods", |
| 100 | + "wrong-import-order", |
| 101 | + "unused-import", |
| 102 | + "wrong-import-position", |
| 103 | + "unnecessary-lambda-assignment", |
| 104 | + "too-many-lines", |
| 105 | + "too-many-statements", |
| 106 | + "deprecated-class", |
| 107 | + "redefined-builtin", |
| 108 | + "used-before-assignment", |
| 109 | + "undefined-variable", |
| 110 | + "protected-access", |
| 111 | + "not-callable", |
| 112 | + "redefined-outer-name", |
| 113 | + "too-many-instance-attributes", |
| 114 | + "missing-final-newline", |
| 115 | + "too-many-public-methods", |
| 116 | + "import-error", |
| 117 | +] |
| 118 | + |
| 119 | +# We include pyink to allow external contributors to optionally, but easily, |
| 120 | +# pass google internal formatting checks. |
| 121 | +[tool.pyink] |
| 122 | +pyink = true # false would mean black is used directly without pyink features |
| 123 | +pyink-use-majority-quotes = true |
| 124 | +pyink-indentation = 2 |
| 125 | +line-length = 80 |
| 126 | +include = '\.pyi?$' |
0 commit comments