Skip to content

Commit

Permalink
Add ruff specs
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
benjaminrose committed Jan 23, 2025
1 parent 91320fc commit 63fff65
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions {{ cookiecutter.package_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,36 @@ exclude_lines = [
"@overload",
]

[tool.ruff]
line-length = 120
indent-width = 4
exclude = [
".git",
".github",
".ruff_cache",
".vscode",
"__pypackages__",
]


[tool.ruff.lint]
preview = true
select = [ 'F', 'E101', 'E111', 'E112', 'E113', 'E115', 'E117',
'E204', 'E223', 'E224', 'E242', 'E265', 'E273', 'E274', 'E275',
'E301', 'E302', 'E305', 'E306', 'E401', 'E501', 'E502', 'E703',
'E711', 'E713', 'E714', 'E72', 'E74',
'W19', 'W29', 'W39', 'W605',
'N804', 'N805', 'N807',
'D206', 'D300', 'D301',
'UP010', 'UP011', 'UP012', 'UP013', 'UP014', 'UP017', 'UP018', 'UP019',
'UP02', 'UP030', 'UP031', 'UP033', 'UP034', 'UP035', 'UP036',
'UP037', 'UP039', 'UP04',
'PLE0100', 'PLE0101', 'PLE0116',
'NPY',
'RUF018',
'E301', 'E302', 'E306', 'W505', 'D200', 'D212', 'RUF021' ]


[tool.towncrier]
# Where you want your news files to come out, filename=`NEWS.rst` is the default.
# This can be .rst or .md, towncrier's default template works with both.
Expand Down

0 comments on commit 63fff65

Please sign in to comment.