Skip to content

Commit

Permalink
Use ruff, remove pyflakes and isort, and move black to the project root
Browse files Browse the repository at this point in the history
I could not move mypy to the project root (python/mypy#4008).
  • Loading branch information
kshramt committed Jul 15, 2023
1 parent ee389ec commit 61c9fe0
Show file tree
Hide file tree
Showing 7 changed files with 572 additions and 1,219 deletions.
725 changes: 160 additions & 565 deletions grpc_py/poetry.lock

Large diffs are not rendered by default.

15 changes: 1 addition & 14 deletions grpc_py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
[tool.isort]
profile = 'black'
multi_line_output = 3

[tool.mypy]
plugins = [
"pydantic.mypy",
"sqlalchemy.ext.mypy.plugin",
]
show_error_codes = true
strict = true
Expand All @@ -20,16 +14,9 @@ python = ">=3.9.5,<3.12"
grpcio-tools = "^1.51.3"

[tool.poetry.group.dev.dependencies]
black = "^22.12.0"
isort = "^5.11.4"
mypy = "^0.991"
mypy-ls = "^0.5.1"
pyflakes = "^2.5.0"
pyls-isort = "^0.2.2"
mypy = "^1.4.1"
pytest = "^7.2.0"
pytest-asyncio = "^0.20.0"
python-lsp-server = "^1.7.0"
python-lsp-black = "^1.2.1"

[tool.poetry]
name = "grpc_py"
Expand Down
173 changes: 173 additions & 0 deletions poetry.lock

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

2 changes: 2 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tool.poetry.dependencies]
python = ">=3.9.5,<3.12"

[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
ruff = "^0.0.278"

[tool.poetry]
name = "evidence_based_scheduling"
version = "1.0.0"
description = ""
authors = ["Your Name <you@example.com>"]
exclude = ["./**/conftext.py", "./**/*_test.py"]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


[tool.ruff]
exclude = [
"**/gen/"
]
ignore = [
"E501",
]
select = [
# "D",
"E",
"F",
"I001",
"W",
]

# [tool.ruff.pydocstyle]
# convention = "google"
Loading

0 comments on commit 61c9fe0

Please sign in to comment.