-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
109 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
[tool.poetry]
authors = [
"David Orme <[email protected]>",
"Jacob Cook <[email protected]>",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
description = "Validation and publication tool for data files in the SAFE data submission format."
homepage = "https://safedata-validator.readthedocs.io/"
license = "MIT"
name = "safedata_validator"
readme = "README.md"
repository = "https://github.com/imperial_college_london/safedata_validator"
version = "3.0.1"
[tool.poetry.scripts]
safedata_build_local_gbif = "safedata_validator.entry_points:_build_local_gbif_cli"
safedata_build_local_ncbi = "safedata_validator.entry_points:_build_local_ncbi_cli"
safedata_metadata = "safedata_validator.entry_points:_safedata_metadata_cli"
safedata_validate = "safedata_validator.entry_points:_safedata_validate_cli"
safedata_zenodo = "safedata_validator.entry_points:_safedata_zenodo_cli"
[tool.mypy]
ignore_missing_imports = true
[tool.poetry.dependencies]
appdirs = "^1.4.4"
configobj = "^5.0.6"
dominate = "^2.6.0"
dotmap = "^1.3.30"
jinja2 = "^3.1.3"
openpyxl = "^3.0.10"
python = "^3.10"
python-dateutil = "^2.8.2"
requests = "^2.32.3"
rispy = "^0.7.1"
shapely = "^2.0.4"
simplejson = "^3.17.6"
sympy = "^1.10.1"
tqdm = "^4.64.0"
typing-extensions = "^4.8.0"
[tool.poetry.group.test.dependencies]
pyfakefs = "^5.3"
pytest = "^7.0"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
[tool.poetry.group.devenv.dependencies]
mypy = "^1.9.0"
pre-commit = "^3.0.0"
ruff = "^0.4.4"
types-python-dateutil = "^2.8.19.12"
types-requests = "^2.28.11.17"
types-simplejson = "^3.19.0.0"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.3"
mkdocs-include-markdown-plugin = "^6.0.4"
mkdocs-material = "^8.3.9"
mkdocs-table-reader-plugin = "^2.1.0"
mkdocstrings = "^0.24.0"
mkdocstrings-python = "^1.7.5"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.2.0"]
[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"]