-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (71 loc) · 1.91 KB
/
pyproject.toml
File metadata and controls
87 lines (71 loc) · 1.91 KB
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
[tool.poetry]
name = "nova-top-level-docs"
version = "0.1.0"
description = "Utilties for accessing the ORNL Galaxy instance"
authors = ["Andrew Ayres <ayresaf@ornl.gov>"]
readme = "README.md"
license = "MIT"
keywords = ["NOVA", "Galaxy", "documentation"]
packages = [
{include = "nova_top_level_docs", from = "src"}
]
[tool.poetry.dependencies]
python = "^3.10"
bioblend = "^1.3.0"
tomli = "^2.0.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test*.py"]
norecursedirs = [".git", "tmp*", "_tmp*", "__pycache__"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"N", # PEP8 naming convetions
"D" # pydocstyle
]
ignore = [
"C901", # too complex
"D102", # Missing docstring in public function
"D103", # Missing docstring in public method
"D401" # imperative mood
]
[tool.ruff.lint.extend-per-file-ignores]
'__init__.py' = ['D104'] # Missing docstring in public package
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
ignore_missing_imports = false
check_untyped_defs = true
disallow_untyped_defs = true
ignore_errors = false
disable_error_code = ["import-untyped"]
# You can exclude files with the following (ONLY WHEN NECESSARY)
# exclude = ["path/to/file"]
[tool.coverage.report]
omit = [
'*__init__*', # __init__ files should just re-export other classes and functions
]
[tool.coverage.run]
command_line = "-m pytest --junit-xml=reports/junit.xml"
data_file = "reports/.coverage"
[tool.poetry.dev-dependencies]
mypy = ">=1.10.0"
pre-commit = ">=2.20.0"
coverage = ">=6.4.3"
pytest = "*"
ruff = ">=0.6.2"
copier=">=9.3"
sphinx = "*"
sphinx-rtd-theme = "^3.0.0rc3"
sphinxcontrib-napoleon = "*"
tomli = "^2.0.2"