-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
76 lines (65 loc) · 2.4 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
[project]
name = "elfpy-examples"
version = "0.1"
authors = [
{ name = "Dylan Paiton", email = "[email protected]" },
{ name = "Mihai Cosma", email = "[email protected]" },
{ name = "Jonny Rhea", email = "[email protected]" },
{ name = "Matthew Brown", email = "[email protected]" },
{ name = "Alex Towle", email = "[email protected]" },
{ name = "Sheng Lundquist", email = "[email protected]" },
{ name = "Patrick Morris", email = "[email protected]" },
{ name = "Giovanni Effio", email = "[email protected]" },
{ name = "Ryan Goree", email = "[email protected]" },
{ name = "Will Villanueva", email = "[email protected]" },
{ name = "Jacob Arruda", email = "[email protected]" },
{ name = "Violet Vienhage", email = "[email protected]" },
]
description = "Example notebooks for elfpy"
readme = "README.md"
requires-python = ">=3.9, <3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache License 2.0",
"Operating System :: OS Independent",
]
line-length = "120"
[build-system]
requires = ["flit_core>=3.2"]
build-backend = "flit_core.buildapi"
[tool.pylint.format]
max-line-length = "120"
[tool.black]
line-length = "120"
extend-exclude = "\\.ipynb"
[tool.pyright]
exclude = [
".venv",
".vscode",
"docs",
]
[tool.ruff]
# Default is: pycodestyle (E) and Pyflakes (F)
# We add flake8-builtins (A), pydocstyle (D), isort (I), pep8-naming (N), and pylint (PL).
# We remove pycodestyle (E) since it throws erroneous line too long errors.
# We remove Pyflakes (F) since it complains about `import *` which we need.
select = ["A", "D", "I", "N", "PL"]
# We ignore the following rules:
# D203 : 1 blank line required before class docstring (incompatible with D211: no blank lines before class docstring)
# D213: multi-line-summary-second-line (incompatible with D212: multi-line summary should start at the first line)
# D416: section-name-ends-in-colon (numpy style guide doesn't use colons after sections, i.e. Parameters)
ignore = ["D203", "D213", "D416"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "D", "I", "N", "PL"]
unfixable = []
# Ignore builtins in elfpy/utils/math/fixed_point.py
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.9.
target-version = "py39"
exclude = [
".venv",
".vscode",
"docs",
]