Skip to content

Commit

Permalink
pyproject(ruff): Updates for 0.2.0
Browse files Browse the repository at this point in the history
warning: The top-level linter settings are deprecated in favour of their counterparts in the  section. Please update the following options in :
  - 'select' -> 'lint.select'
  - 'isort' -> 'lint.isort'
  - 'pydocstyle' -> 'lint.pydocstyle'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
  • Loading branch information
tony committed Feb 2, 2024
1 parent 94e41c2 commit b9e0b19
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ exclude_lines = [

[tool.ruff]
target-version = "py38"

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
Expand All @@ -159,14 +161,14 @@ select = [
"D", # pydocstyle
]

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["unihan_etl", "cihai"]
combine-as-imports = true

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]

[tool.pytest.ini_options]
Expand Down

0 comments on commit b9e0b19

Please sign in to comment.