forked from abTEM/abTEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
48 lines (43 loc) · 1.23 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
[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
[tool.ruff]
fix = false
line-length = 88
ignore = [
"E741",
"E743", # Example rule code for "Ambiguous function name: `l`"
]
exclude = [
"abtem/reconstruct.py",
"abtem/visualize",
"abtem/measurements.py",
]
[tool.ruff.lint]
select = [
"I",
"E",
"F",
"W",
"F821",
#"ANN001", # Missing type annotation for function argument
#"ANN002", # Missing type annotation for function return
#"ANN003", # Missing type annotation for variable
]
[tool.mypy]
warn_unreachable = true
# follow_imports = "silent"
# disallow_untyped_defs = true
# disallow_incomplete_defs = true
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:Overspecified grid, the provided sampling:UserWarning",
"ignore:module 'sre_parse' is deprecated:DeprecationWarning",
"ignore:module 'sre_constants' is deprecated:DeprecationWarning",
"ignore:Axis.*not supported by hyperspy.*:UserWarning",
"ignore:'num_frozen_phonons' is greater than one, but the potential unit does not have frozen phonons:UserWarning",
"ignore:ignoring keyword argument 'read_only':UserWarning",
]