Skip to content

Commit

Permalink
feat: remove pylama, faker, make deps more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasKoehneckeAA committed May 14, 2024
1 parent cb8843c commit 7276bbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 164 deletions.
145 changes: 1 addition & 144 deletions poetry.lock

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

23 changes: 6 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ packages = [{ include = "intelligence_layer", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
pydantic = "2.7.*"
fastapi = "*"
uvicorn = "*"
fastapi = "^0.111.0"
uvicorn = "^0.29.0"
aleph-alpha-client = ">=7.1.0"
python-dotenv = "*"
semantic-text-splitter = "^0.13.1"
Expand All @@ -39,14 +39,12 @@ opentelemetry-exporter-otlp-proto-http = "1.23.0"
mypy = "^1.10.0"
nbqa = "^1.8.5"
ruff = "^0.4.4"
pre-commit = "*"
pylama = { extras = ["radon", "vulture", "toml"], version = "^8.4.1" }
faker = "^25.2.0"
pre-commit = "^3.7.1"

# tests
pytest = "*"
pytest = "^8.2"
pytest-xdist = "^3.6.1"
hypercorn = "0.16.0"
hypercorn = "^0.16.0"

# typing
httpx = "*"
Expand All @@ -58,6 +56,7 @@ types-decorator = "*"
types-requests = "*"
types-tqdm = "*"
pandas-stubs = "^2.2.1.240316"

# docs
sphinx-rtd-theme = "^2.0.0"
sphinx = "^7.3.7"
Expand All @@ -77,19 +76,9 @@ filterwarnings = [
'ignore:.*\`general_plain_validator_function\` is deprecated.*',
]

[tool.pylama]
skip = "*/__init__.py,.venv/*,*/node_modules/*"
ignore = "E501,E203"

[tool.ruff]
extend-include = ["*.ipynb"]

[tool.ruff.lint.mccabe]
max-complexity = 11

# we double check this, maybe pylama isn't necessary anymore
[tool.pylama.linter.mccabe]
max-complexity = "11"

[tool.isort]
profile = "black"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from aleph_alpha_client import CompletionResponse
from aleph_alpha_client.completion import CompletionResult
from faker import Faker
from pytest import fixture

from intelligence_layer.connectors.argilla.argilla_client import (
Expand Down Expand Up @@ -99,11 +98,10 @@ def evaluator(

@fixture
def any_instruct_output() -> CompleteOutput:
faker = Faker()
return CompleteOutput.from_completion_response(
CompletionResponse(
model_version="",
completions=[CompletionResult(completion=faker.text())],
completions=[CompletionResult(completion="some text")],
num_tokens_generated=0,
num_tokens_prompt_total=0,
),
Expand Down

0 comments on commit 7276bbb

Please sign in to comment.