-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
111 lines (96 loc) · 2.76 KB
/
pyproject.toml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[tool.poetry]
name = "safedata_validator"
version = "3.0.1rc1"
description = "\"Validator for data files in the SAFE data submission format.\""
readme = "README.md"
homepage = "https://safedata-validator.readthedocs.io/"
repository = "https://github.com/imperial_college_london/safedata_validator"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
authors = [
"David Orme <d.orme@imperial.ac.uk>",
"Jacob Cook <j.cook17@imperial.ac.uk>",
]
license = "MIT"
[tool.poetry.scripts]
safedata_validate = "safedata_validator.entry_points:_safedata_validate_cli"
safedata_zenodo = "safedata_validator.entry_points:_safedata_zenodo_cli"
safedata_metadata = "safedata_validator.entry_points:_safedata_metadata_cli"
safedata_build_local_gbif = "safedata_validator.entry_points:_build_local_gbif_cli"
safedata_build_local_ncbi = "safedata_validator.entry_points:_build_local_ncbi_cli"
[tool.mypy]
ignore_missing_imports = true
[tool.poetry.dependencies]
python = "^3.10"
openpyxl = "^3.0.10"
requests = "^2.32.0"
simplejson = "^3.17.6"
appdirs = "^1.4.4"
python-dateutil = "^2.8.2"
dotmap = "^1.3.30"
configobj = "^5.0.6"
sympy = "^1.10.1"
rispy = "^0.7.1"
dominate = "^2.6.0"
tqdm = "^4.64.0"
typing-extensions = "^4.8.0"
shapely = "^2.0.4"
jinja2 = "^3.1.3"
[tool.poetry.group.test.dependencies]
pyfakefs = "^4.5.6"
pytest = "^7.0"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
[tool.poetry.group.devenv.dependencies]
pre-commit = "^2.18.1"
mypy = "^1.9.0"
types-simplejson = "^3.19.0.0"
types-python-dateutil = "^2.8.19.12"
types-requests = "^2.28.11.17"
ruff = "^0.4.4"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.3"
mkdocs-include-markdown-plugin = "^6.0.4"
mkdocs-material = "^8.3.9"
mkdocstrings = "^0.24.0"
mkdocstrings-python = "^1.7.5"
mkdocs-table-reader-plugin = "^2.1.0"
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = """
-v
-p no:warnings
--cov=safedata_validator
--cov-report=html:htmlcov/coverage
"""
python_files = 'test_*.py'
testpaths = ['test']
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
# Enable all `pydocstyle` rules, limiting to those that adhere to the
# Google convention via `convention = "google"`, below.
select = [
# "B", # flake8-bugbear
# "SIM", # flake8-simplify
"E", # pycodestyle
"F", # pyflakes
"D", # pydocstyle
"I", # isort
"UP", # pyupgrade
"RUF", # ruff-only checking
]
# On top of the Google convention, disable:
ignore = [
"D202", # Blank line after docstring is ok
"D107", # Location of __init__ docstring in class not __init__"
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"test/test_*.py" = ["D103"]