|
41 | 41 | "sphinx_autodoc_typehints", |
42 | 42 | "sphinx_copybutton", |
43 | 43 | ] |
44 | | - test = ["numpy", "pytest >=6", "pytest-cov >=3"] |
| 44 | + test = [ |
| 45 | + "numpy", |
| 46 | + "pytest >=6", |
| 47 | + "pytest-cov >=3", |
| 48 | + "pytest-github-actions-annotate-failures", |
| 49 | + "sybil", |
| 50 | + ] |
45 | 51 |
|
46 | 52 | [project.urls] |
47 | 53 | "Bug Tracker" = "https://github.com/GalacticDynamics/zeroth/issues" |
|
59 | 65 |
|
60 | 66 |
|
61 | 67 | [tool.pytest.ini_options] |
62 | | - addopts = ["--showlocals", "--strict-config", "--strict-markers", "-ra"] |
| 68 | + addopts = [ |
| 69 | + "--showlocals", |
| 70 | + "--strict-config", |
| 71 | + "--strict-markers", |
| 72 | + "-p no:doctest", # using sybil |
| 73 | + "-ra", |
| 74 | + ] |
63 | 75 | filterwarnings = ["error"] |
64 | | - log_cli_level = "INFO" |
65 | | - minversion = "6.0" |
66 | | - testpaths = ["tests"] |
67 | | - xfail_strict = true |
| 76 | + log_cli_level = "INFO" |
| 77 | + minversion = "6.0" |
| 78 | + testpaths = ["tests/", "docs", "src/"] |
| 79 | + xfail_strict = true |
68 | 80 |
|
69 | 81 |
|
70 | 82 | [tool.coverage] |
|
93 | 105 | [tool.ruff.lint] |
94 | 106 | extend-select = ["ALL"] |
95 | 107 | ignore = [ |
| 108 | + "D203", # 1 blank line required before class docstring |
| 109 | + "D213", # Multi-line docstring summary should start at the second line |
| 110 | + "FIX002", # Line contains TODO, consider resolving the issue |
96 | 111 | "ISC001", # Conflicts with formatter |
97 | 112 | "PLR09", # Too many <...> |
98 | 113 | "PLR2004", # Magic value used in comparison |
| 114 | + "TD002", # Missing author in TODO |
| 115 | + "TD003" # Missing issue link on the line following this TODO |
99 | 116 | ] |
100 | 117 |
|
101 | 118 | [tool.ruff.lint.per-file-ignores] |
|
0 commit comments