forked from yt-project/yt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
143 lines (134 loc) · 3.96 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
142
143
[build-system]
requires = [
"setuptools>=19.6",
# see https://github.com/numpy/numpy/pull/18389
"wheel>=0.36.2",
# Cython 3.0 is the next version after 0.29, and a major change,
# we forbid it until we can properly test against it
"Cython>=0.29.21,<3.0",
"oldest-supported-numpy",
]
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| yt/frontends/stream/sample_data
)/
| yt/visualization/_colormap_data.py
'''
[tool.isort]
profile = "black"
combine_as_imports = true
skip = ["venv", "benchmarks"]
known_third_party = [
"IPython",
"nose",
"numpy",
"sympy",
"matplotlib",
"unyt",
"git",
"yaml",
"dateutil",
"requests",
"coverage",
"pytest",
"pyx",
"glue",
]
known_first_party = ["yt"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
# The -s option prevents pytest from capturing output sent to stdout
# -v runs pytest in verbose mode
# -rsfE: The -r tells pytest to provide extra test summary info on the events
# specified by the characters following the r. s: skipped, f: failed, E: error
[tool.pytest.ini_options]
addopts = '''
-s
-v
-rsfE
--ignore-glob='*_nose.py'
--ignore='yt/frontends/owls_subfind/tests/test_outputs.py'
--ignore='yt/frontends/ramses/tests/test_outputs.py'
'''
[tool.check-manifest]
# ignore generated C/C++ files, otherwise reported as "missing from VCS" (Version Control System)
# Please resist the temptation to use patterns instead of exact file names here.
ignore = [
"yt/frontends/artio/_artio_caller.c",
"yt/frontends/gamer/cfields.c",
"yt/frontends/ramses/io_utils.c",
"yt/geometry/fake_octree.c",
"yt/geometry/grid_container.c",
"yt/geometry/grid_visitors.c",
"yt/geometry/oct_container.c",
"yt/geometry/oct_visitors.c",
"yt/geometry/particle_deposit.c",
"yt/geometry/particle_oct_container.cpp",
"yt/geometry/particle_smooth.c",
"yt/geometry/selection_routines.c",
"yt/utilities/cython_fortran_utils.c",
"yt/utilities/lib/_octree_raytracing.cpp",
"yt/utilities/lib/allocation_container.c",
"yt/utilities/lib/alt_ray_tracers.c",
"yt/utilities/lib/amr_kdtools.c",
"yt/utilities/lib/autogenerated_element_samplers.c",
"yt/utilities/lib/basic_octree.c",
"yt/utilities/lib/bitarray.c",
"yt/utilities/lib/bounded_priority_queue.c",
"yt/utilities/lib/bounding_volume_hierarchy.cpp",
"yt/utilities/lib/contour_finding.c",
"yt/utilities/lib/cosmology_time.c",
"yt/utilities/lib/cykdtree/kdtree.cpp",
"yt/utilities/lib/cykdtree/utils.cpp",
"yt/utilities/lib/cyoctree.c",
"yt/utilities/lib/cyoctree.cpp",
"yt/utilities/lib/depth_first_octree.c",
"yt/utilities/lib/distance_queue.c",
"yt/utilities/lib/element_mappings.c",
"yt/utilities/lib/ewah_bool_wrap.cpp",
"yt/utilities/lib/fnv_hash.c",
"yt/utilities/lib/fortran_reader.c",
"yt/utilities/lib/geometry_utils.cpp",
"yt/utilities/lib/grid_traversal.cpp",
"yt/utilities/lib/image_samplers.cpp",
"yt/utilities/lib/image_utilities.c",
"yt/utilities/lib/interpolators.c",
"yt/utilities/lib/lenses.c",
"yt/utilities/lib/line_integral_convolution.c",
"yt/utilities/lib/marching_cubes.cpp",
"yt/utilities/lib/mesh_triangulation.c",
"yt/utilities/lib/mesh_utilities.c",
"yt/utilities/lib/misc_utilities.cpp",
"yt/utilities/lib/origami.c",
"yt/utilities/lib/particle_kdtree_tools.cpp",
"yt/utilities/lib/particle_mesh_operations.c",
"yt/utilities/lib/partitioned_grid.cpp",
"yt/utilities/lib/pixelization_routines.cpp",
"yt/utilities/lib/points_in_volume.c",
"yt/utilities/lib/primitives.c",
"yt/utilities/lib/quad_tree.c",
"yt/utilities/lib/ragged_arrays.c",
"yt/utilities/lib/write_array.c",
]
[tool.mypy]
python_version = 3.7
show_error_codes = true
ignore_missing_imports = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
show_error_context = true
exclude = "(test_*|lodgeit)"