-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ruff.toml
35 lines (31 loc) · 975 Bytes
/
.ruff.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
target-version = "py310"
line-length = 110
exclude = [
".git,",
"__pycache__",
"build",
"MagIEpy/version.py",
]
[lint]
select = ["E", "F", "W", "UP", "PT"]
extend-ignore = [
# pytest (PT)
"PT001", # Always use pytest.fixture()
"PT004", # Fixtures which don't return anything should have leading _
"PT023", # Always use () on pytest decorators
]
[lint.flake8-tidy-imports]
[lint.flake8-tidy-imports.banned-api]
"warnings.warn".msg = "Use sunpy specific warning helpers warn_* from sunpy.utils.exceptions"
[lint.per-file-ignores]
# Part of configuration, not a package.
"setup.py" = ["INP001"]
"conftest.py" = ["INP001"]
# Implicit-namespace-package. The examples are not a package.
"docs/*.py" = ["INP001", "E402"]
"__init__.py" = ["E402", "F401", "F403"]
"test_*.py" = ["B011", "D", "E402", "PGH001", "S101"]
# Need to import clients to register them, but don't use them in file
"MagIEpy/net/__init__.py" = ["F811"]
[lint.pydocstyle]
convention = "numpy"