Skip to content

Commit 96614ea

Browse files
authored
PEP 621: Storing project metadata in pyproject.toml (#423)
1 parent 8cb41b8 commit 96614ea

File tree

3 files changed

+38
-48
lines changed

3 files changed

+38
-48
lines changed

.style.yapf

Lines changed: 0 additions & 3 deletions
This file was deleted.

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# DO always create a tracking issue when allow-listing warnings
2+
# DO NOT disable warnings-as-error: warnings of today are tomorrow's evolvability blocker.
3+
4+
[tool.pytest.ini_options]
5+
filterwarnings = [
6+
# Treat warnings as errors
7+
"error",
8+
# ...except this allow list:
9+
# Issue #35
10+
"ignore:the imp module is deprecated:DeprecationWarning",
11+
# Issue #36
12+
"ignore:`np.bool` is a deprecated alias:DeprecationWarning",
13+
# Issue #37
14+
"ignore:Encoding a StructuredValue with type tf_agents.policies.greedy_policy.DeterministicWithLogProb_ACTTypeSpec:UserWarning",
15+
# Not much to do about this, it's caused by gin
16+
"ignore:Using or importing the ABCs from 'collections':DeprecationWarning",
17+
# Issue #119
18+
"ignore:Encoding a StructuredValue with type tfp.distributions.Deterministic_ACTTypeSpec:UserWarning",
19+
# This warning stems from tensorflow and tf-agents and will presumably
20+
# be fixed by them before v3.12
21+
"ignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning",
22+
# Also an issue internal to tensorflow
23+
"ignore:Call to deprecated create function .*Descriptor.*:DeprecationWarning",
24+
# Also internal to tensorflow
25+
"ignore:non-integer arguments to randrange.*:DeprecationWarning",
26+
# Issue #110
27+
"ignore:Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython display:DeprecationWarning",
28+
# Issue #132
29+
"ignore:Encoding a StructuredValue with type tfp.distributions.Categorical_ACTTypeSpec:UserWarning",
30+
"ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning",
31+
# Issue #255
32+
"ignore:The line search algorithm did not converge",
33+
"ignore:Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation.",
34+
]
35+
36+
[tool.yapf]
37+
based_on_style = "yapf"
38+
indent_width = 2

pytest.ini

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)