Skip to content

Commit

Permalink
Update tooling (#57)
Browse files Browse the repository at this point in the history
- Upgrade ruff to latest version
- Remove black and replace with ruff format
- Upgrade deptry to latest version
  • Loading branch information
ameyarao98 authored Apr 3, 2024
1 parent e4a4f44 commit 0da61e8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 118 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Test
run: poetry run pytest -v
- name: Fmt
run: poetry run black . --check
run: poetry run ruff format . --check
- name: Ruff
run: poetry run ruff check .
- name: Deptry
Expand Down
147 changes: 35 additions & 112 deletions poetry.lock

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

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ pydantic = "^2.1.1"

[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
black = "^22.3.0"
pyhumps = "^3.5.0"
ruff = "^0.0.285"
deptry = "^0.12.0"
ruff = "^0.3.4"
deptry = "^0.15.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand All @@ -41,7 +40,7 @@ build-backend = "poetry.core.masonry.api"
typeCheckingMode = "basic"

[tool.ruff]
select = [
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
Expand All @@ -52,7 +51,8 @@ select = [
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"D", # pydocstyle
"RUF", # ruff-specific rules
]

include = ["siwe/**"]
ignore = ["D203", "D213"]
lint.ignore = ["D203", "D213"]

0 comments on commit 0da61e8

Please sign in to comment.