Skip to content

Commit

Permalink
move to ruff.toml (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerber48 authored Mar 8, 2024
2 parents 4164cce + 1f4e819 commit 295085d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Added

* Added support for Python 3.8.

Changed
^^^^^^^

* Move ruff configuration out of ``pyproject.toml`` into ``ruff.toml``.
[`#163 <https://github.com/jagerber48/sciform/issues/163>`_]

----

0.36.0 (2024-03-07)
Expand Down
28 changes: 0 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,3 @@ examples = [
readme = {file = "README.rst"}

[tool.setuptools_scm]

[tool.ruff]
allowed-confusables = ["×"]

[tool.ruff.lint]
select = ['ALL']
ignore = [
'D105',
'D212',
'D211',
'PLR2004',
'RUF001',
'SIM108',
'TD002',
'TD003',
'FIX002',
'RET504',
]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.per-file-ignores]
"tests/*.py" = ["D", "ANN", "PT"]
"examples/*.py" = ["D"]

[tool.ruff.lint.pydocstyle]
convention = "numpy"
27 changes: 27 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[lint]
allowed-confusables = ["×"]
select = ['ALL']
ignore = [
'D105',
'D212',
'D211',
'PLR2004',
'RUF001',
'SIM108',
'TD002',
'TD003',
'FIX002',
'RET504',
'COM812',
'ISC001',
]

[lint.pydocstyle]
convention = "numpy"

[lint.per-file-ignores]
"tests/*.py" = ["D", "ANN", "PT"]
"examples/*.py" = ["D"]

[format]
docstring-code-format = true

0 comments on commit 295085d

Please sign in to comment.