-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
141 lines (130 loc) · 3.38 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools-scm[toml]>=6.2",
]
[project]
name = "pytcs"
description = "Python API for processing TwinCAT Scope data files"
readme = { file = "README.md", content-type = "text/markdown" }
keywords = [
"file reader",
"TwinCAT",
"TwinCAT Scope",
]
license = { file = "LICENSE", name = "BSD License" }
authors = [
{ name = "Cagtay Fabry", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
# see: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata
"version", # version gets derived from git by setuptools_scm.
]
dependencies = [
"bidict",
"numpy",
"pandas>=1.4",
]
optional-dependencies.all = [
"bottleneck>=1.3",
"pint>=0.18",
"xarray>=0.15",
]
optional-dependencies.datatable = [
"datatable",
]
optional-dependencies.export = [
# needed to create the test files using create_scope_configs.py
"dicttoxml",
"pyyaml",
]
optional-dependencies.test = [
# needed to run the test suite
"pyarrow",
"pytest",
"pytest-cov",
"pytest-xdist",
]
urls.bug_tracker = "https://github.com/CagtayFabry/pytcs/issues"
urls.repository = "https://github.com/CagtayFabry/pytcs"
[tool.setuptools.packages]
find = {} # Scanning implicit namespaces is active by default
#exclude = ["tests", "resources"]
[tool.setuptools_scm]
write_to = "pytcs/_version.py"
[tool.ruff]
target-version = "py39" # designated Python version
line-length = 88
extend-exclude = [
"./resources/**",
"./tests/**",
"__init__.py",
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
#"D", # note: all relevant D's will be set by setting pydocstyle.convention=numpy!
"E", # pycodestyles
"F", # pyflakes
"W", # pycodestyle warnings
"UP", # pyupgrade
"T2", # flake8-print
"I001", # isort
"ICN", # import conventions, e.g. import numpy as np
#"B950", # not yet implemented by Ruff.
"RUF100", # ensure 'noqa' declarations are still valid.
]
ignore = [
"UP006",
"UP007", # see ruff GH#4427
]
pydocstyle = { convention = "numpy" }
mccabe = { max-complexity = 15 } # max branches inside a function.
isort.known-first-party = [
"pytcs",
]
flake8-import-conventions.extend-aliases = { xarray = "xr" }
[tool.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = "pytcs"
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
[tool.pytest.ini_options]
addopts = "--tb=short --color=yes -rsw --cov=pytcs --cov-report=term-missing:skip-covered --doctest-modules"
testpaths = [
"tests",
]
# norecursedirs = "doc"
[tool.coverage.run]
source = [
"pytcs",
]
[tool.coverage.report]
omit = [
"pytcs/_version.py",
"tests/*",
]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# ignore class __repr__-like functions:
"def __repr__",
"def __str__",
"def _ipython_display_",
]