Skip to content

Commit

Permalink
Update pyproject.toml (#47)
Browse files Browse the repository at this point in the history
Closes #46.
  • Loading branch information
Andrew-S-Rosen authored Nov 18, 2024
1 parent a1aa37d commit fb1add5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ license = { text = "BSD-3" }
authors = [{ name = "YourName", email = "YourName@email.com" }]
keywords = ["MyKeyword1", "MyKeyword2"]
classifiers = [
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -86,6 +85,7 @@ lint.select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"ASYNC1", # flake8-async1
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
Expand Down Expand Up @@ -116,19 +116,16 @@ lint.select = [
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRIO", # flake8-trio
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
lint.ignore = [
"E501", # Line too long
"ISC001", # single-line-implicit-string-concatenation
"PERF203", # try-except-in-loop
"PLR", # Design related pylint codes
"PERF203", # try-except-in-loop
"PT004", # Fixture does not return anything
"PT011", # pytest.raises
"PT012", # pytest.raises
"RET505", # Unnecessary `elif` after `return`
]
src = ["src"]
Expand All @@ -139,8 +136,13 @@ lint.unfixable = [
lint.pydocstyle.convention = "numpy"
lint.isort.known-first-party = ["template"]
lint.isort.required-imports = ["from __future__ import annotations"]
lint.isort.split-on-trailing-comma=false
extend-include = ["*.ipynb"]

[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["ANN", "ARG", "D", "E402", "PTH", "S101"]
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_divide():
"""
assert divide(3, 2) == pytest.approx(1.5)

with pytest.raises(ValueError):
with pytest.raises(ValueError, match="Uh oh! The value for b should not be 0"):
divide(10, 0)


Expand Down

0 comments on commit fb1add5

Please sign in to comment.