-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (47 loc) · 1.24 KB
/
pyproject.toml
File metadata and controls
54 lines (47 loc) · 1.24 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pymie"
version = "0.2"
description = "Pure Python package for Mie scattering calculations"
readme = "README.md"
authors = [
{ name = "Manoharan Lab, Harvard University", email = "vnm@seas.harvard.edu" },
]
dependencies = [
"numpy",
"pint",
"scipy",
# pytest and pyyaml are needed for running unit tests
"pytest",
"pyyaml",
]
license-files = ["LICENSE",]
[project.urls]
Homepage = "https://github.com/manoharan-lab/python-mie"
# convert all warnings to errors
[tool.pytest.ini_options]
filterwarnings = [
"error",
]
[tool.ruff]
line-length = 79
[tool.ruff.lint]
# Rulesets for ruff to check
select = [
# pyflakes rules
"F",
# pycodestyle (PEP8)
"E", "W",
]
[tool.ruff.lint.per-file-ignores]
# Ignore long line warnings and unused variable warnings in test files. We
# sometimes have long lines for nicely formatting gold results, and we sometimes
# have unused variables just to check if function returns without an error
"**/tests/*" = ["E501", "F841"]
# Ignore "ambiguous variable name" when we use "l" as a variable in Mie
# calculations
"pymie/mie.py" = ["E741"]
[tool.setuptools.packages.find]
include = ["pymie"]