forked from FEniCS/ufl
-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
84 lines (75 loc) · 2 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
[build-system]
requires = ["setuptools>=62", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fenics-ufl"
version = "2024.3.0.dev0"
authors = [{ name = "UFL contributors" }]
maintainers = [
{ email = "[email protected]" },
{ name = "FEniCS Steering Council" },
]
description = "Unified Form Language"
readme = "README.md"
license = { file = "COPYING.lesser" }
requires-python = ">=3.8.0"
dependencies = ["numpy"]
[project.urls]
homepage = "https://fenicsproject.org"
repository = "https://github.com/fenics/ufl.git"
documentation = "https://docs.fenicsproject.org"
issues = "https://github.com/FEniCS/ufl/issues"
funding = "https://numfocus.org/donate"
[project.optional-dependencies]
lint = ["ruff"]
docs = ["sphinx", "sphinx_rtd_theme"]
test = ["pytest"]
ci = [
"coveralls",
"coverage",
"pytest-cov",
"pytest-xdist",
"fenics-ufl[docs]",
"fenics-ufl[lint]",
"fenics-ufl[test]",
]
[tool.setuptools]
packages = [
"ufl",
"ufl.algorithms",
"ufl.core",
"ufl.corealg",
"ufl.formatting",
"ufl.utils",
]
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
# "N", # pep8-naming
"E", # pycodestyle
"W", # pycodestyle
"D", # pydocstyle
"F", # pyflakes
"I", # isort
"RUF", # Ruff-specific rules
# "UP", # pyupgrade
"ICN", # flake8-import-conventions
"NPY", # numpy-specific rules
"FLY", # use f-string not static joins
"LOG", # https://docs.astral.sh/ruff/rules/#flake8-logging-log
# "ISC", # https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc
# "B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
# "A", # https://docs.astral.sh/ruff/rules/#flake8-builtins-a
]
ignore = ["RUF005", "RUF012"]
allowed-confusables = ["𝐚", "𝐀", "∕", "γ", "⨯", "∨"]
[tool.ruff.lint.per-file-ignores]
"demo/*" = ["D"]
"doc/*" = ["D"]
"test/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"