Skip to content

Commit 36f09a3

Browse files
committed
add ruff configuration, editorconfig
1 parent 06847de commit 36f09a3

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 4
11+
12+
[*.{py}]
13+
trim_trailing_whitespace = true

ruff.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
target-version = "py310"
2+
3+
# gettext
4+
builtins = ["_"]
5+
6+
[lint]
7+
select = ["E", "W", "F", "D2", "D3", "D4"]
8+
ignore = [
9+
# PyGObject needs require_version before imports
10+
"E402",
11+
12+
# these are disabled for now, but should probably be cleaned up at some point
13+
"D205", "D401", "D404",
14+
]
15+
16+
[lint.pydocstyle]
17+
convention = "numpy"

0 commit comments

Comments
 (0)