-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 1.84 KB
/
pyproject.toml
File metadata and controls
77 lines (68 loc) · 1.84 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=60", "setuptools_scm[toml]>=8.0"]
[project]
authors = [
{ name = "Ken Lauer", email = "152229072+ken-lauer@users.noreply.github.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
]
dependencies = ["rich", 'typing_extensions; python_version < "3.11"']
description = "Bmad lattice parser/formatter tool"
dynamic = ["version"]
keywords = []
name = "latform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "pytest-mock"]
doc = [
"mkdocs",
# "mkdocs-macros-plugin",
"mkdocstrings",
"mkdocstrings-python",
]
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[project.license]
file = "LICENSE"
[project.scripts]
"latform" = "latform.main:cli_main"
"latform-graph" = "latform.graph:cli_main"
"latform-dump" = "latform.dump:cli_main"
"latform-diff" = "latform.diff:cli_main"
"latform-gitdiff" = "latform.diff:cli_main_gitdiff"
[tool.ruff]
# Reference and defaults: https://docs.astral.sh/ruff/configuration/
# exclude = []
line-length = 100
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = [
# Pycodestyle E errors: https://pycodestyle.pycqa.org/en/latest/intro.html
"E4",
"E7",
"E9",
# pyflakes F error codes:
# https://flake8.pycqa.org/en/latest/user/error-codes.html
"F",
]
ignore = [
# Ignore ambiguous variables such as `I`
"E741",
]
[tool.pytest]
addopts = ["--cov=src/"]
log_cli_level = "INFO"
log_level = "DEBUG"
testpaths = ["src/latform/tests"]
[tool.setuptools_scm]
version_file = "src/latform/_version.py"
# For publishing to testpypi (no funny local dev+hash suffix)
local_scheme = "no-local-version"