-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
66 lines (58 loc) · 1.57 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
[build-system]
requires = [
"setuptools>=30.3.0",
]
[tool.ruff.per-file-ignores]
"ci/*" = ["S"]
[tool.ruff]
extend-exclude = ["static", "ci/templates", "src/geophires_x"]
# Incrementally add files to this list as they are cleaned up
extend-include=["src/geophires_x/GEOPHIRESv3.py"]
ignore = [
"RUF001", # ruff-specific rules ambiguous-unicode-character-string
"S101", # flake8-bandit assert
"S308", # flake8-bandit suspicious-mark-safe-usage
"E501", # pycodestyle line-too-long
"PTH100", # objectively wrong replacement suggested
"PTH118",
"PTH120",
"PTH123",
"PT009",
"PT027", # "Use `pytest.raises` instead of unittest-style `assertRaises`"...meh
]
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"INT", # flake8-gettext
"PIE", # flake8-pie
"PLC", # pylint convention
"PLE", # pylint errors
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle warnings
]
src = ["src", "tests"]
target-version = "py38"
[tool.ruff.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.isort]
forced-separate = ["conftest"]
force-single-line = true
[tool.black]
line-length = 120
target-version = ["py38"]
skip-string-normalization = true
[tool.ruff.flake8-quotes]
inline-quotes = "single"