@@ -32,6 +32,87 @@ gitpython = "^3.1.43"
32
32
setuptools = " >=69.5.1,<76.0.0"
33
33
[tool .poetry .dev-dependencies ]
34
34
35
+ [tool .poetry .group .dev .dependencies ]
36
+ ruff = " ^0.9.2"
37
+
35
38
[build-system ]
36
39
requires = [" poetry-core>=1.0.0" ]
37
40
build-backend = " poetry.core.masonry.api"
41
+
42
+ [tool .ruff ]
43
+ # Exclude a variety of commonly ignored directories.
44
+ exclude = [
45
+ " .bzr" ,
46
+ " .direnv" ,
47
+ " .eggs" ,
48
+ " .git" ,
49
+ " .git-rewrite" ,
50
+ " .hg" ,
51
+ " .ipynb_checkpoints" ,
52
+ " .mypy_cache" ,
53
+ " .nox" ,
54
+ " .pants.d" ,
55
+ " .pyenv" ,
56
+ " .pytest_cache" ,
57
+ " .pytype" ,
58
+ " .ruff_cache" ,
59
+ " .svn" ,
60
+ " .tox" ,
61
+ " .venv" ,
62
+ " .vscode" ,
63
+ " __pypackages__" ,
64
+ " _build" ,
65
+ " buck-out" ,
66
+ " build" ,
67
+ " dist" ,
68
+ " node_modules" ,
69
+ " site-packages" ,
70
+ " venv" ,
71
+ ]
72
+
73
+ # Same as Black.
74
+ line-length = 88
75
+ indent-width = 4
76
+
77
+ target-version = " py311"
78
+
79
+ [tool .ruff .lint ]
80
+ # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
81
+ # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
82
+ # McCabe complexity (`C901`) by default.
83
+ select = [" E4" , " E7" , " E9" , " F" ]
84
+ ignore = []
85
+
86
+ # Allow fix for all enabled rules (when `--fix`) is provided.
87
+ fixable = [" ALL" ]
88
+ unfixable = []
89
+
90
+ # Allow unused variables when underscore-prefixed.
91
+ dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
92
+
93
+ [tool .ruff .format ]
94
+ # Like Black, use double quotes for strings.
95
+ quote-style = " double"
96
+
97
+ # Like Black, indent with spaces, rather than tabs.
98
+ indent-style = " space"
99
+
100
+ # Like Black, respect magic trailing commas.
101
+ skip-magic-trailing-comma = false
102
+
103
+ # Like Black, automatically detect the appropriate line ending.
104
+ line-ending = " auto"
105
+
106
+ # Enable auto-formatting of code examples in docstrings. Markdown,
107
+ # reStructuredText code/literal blocks and doctests are all supported.
108
+ #
109
+ # This is currently disabled by default, but it is planned for this
110
+ # to be opt-out in the future.
111
+ docstring-code-format = false
112
+
113
+ # Set the line length limit used when formatting code snippets in
114
+ # docstrings.
115
+ #
116
+ # This only has an effect when the `docstring-code-format` setting is
117
+ # enabled.
118
+ docstring-code-line-length = " dynamic"
0 commit comments