-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
108 lines (95 loc) · 2.65 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
[project]
name = "mat3ra-esse"
dynamic = ["version"]
description = "Excellent Source of Schemas and Examples."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE.md" }
authors = [
{ name = "Exabyte Inc.", email = "[email protected]" }
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Topic :: Software Development",
]
dependencies = [
"exabyte-json-include>=2023.12.23.post0",
"jsonschema>=2.6.0",
# "python-slugify==2.0.1",
# PyYAML install could be problematic, see https://github.com/yaml/pyyaml/issues/601
# To avoid "AttributeError: cython_sources", consider "cython<3.0.0", the below might be needed:
#"PyYAML==5.4.1",
# "Unidecode==1.1.1",
# "toml==0.10.2",
# "importlib-resources==5.2.2",
]
[project.optional-dependencies]
dev = [
"datamodel-code-generator>=0.25.5"
]
tests = [
"coverage[toml]>=5.3",
"parameterized>=0.9.0",
]
all = ["mat3ra-esse[tests,dev]"]
[tool.coverage.run]
source = ['.']
omit = ['env*/*', 'venv*/*', 'tests/*']
# Entrypoint scripts can be defined here, see examples below.
[project.scripts]
# my-script = "my_package.my_module:my_function"
[build-system]
requires = [
"setuptools>=42",
"setuptools-scm[toml]>=3.4"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
git_describe_command = "git describe --tags --long"
# Consider the below to allow for versions like 2024.1.25.post5.dev1'
# https://github.com/pypa/setuptools_scm/issues/342#issuecomment-1233118020
# This won't require a git tag to be present before each publish.
# See https://github.com/Exabyte-io/actions/blob/main/py/publish/action.yml#L47 also.
# local_scheme = "no-local-version"
[tool.setuptools.packages.find]
where = [
"src/py",
]
[tool.setuptools.package-data]
"*" = [
# NOTE: may be needed to allow for the `models` link in the `src/py` directory
"dist/py/**"
]
[tool.setuptools.exclude-package-data]
"*" = [
# Since models inside `src/py` is a link, exclusion is needed
# to avoid `doesn't exist or not a regular file` error
"models"
]
[tool.black]
line-length = 120
target-version = ['py38']
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
(
examples\/.*\/.*\.py
| other\/.*\/.*\.(py|ipynb)
)
'''
[tool.ruff]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
"src/js",
"src/py/mat3ra/esse/data",
"tests/js"
]
line-length = 120
target-version = "py38"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true