Skip to content

Commit

Permalink
Modify pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Frank committed Sep 11, 2024
1 parent 3f019c4 commit e6621e9
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ on:
jobs:
linting:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
tox-env: ["py310"]
steps:
- name: Cancel previous workflows that are still running
uses: styfle/[email protected]
Expand Down
80 changes: 77 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,91 @@ readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"aiosqlite",
"asgi-correlation-id",
"bluepyefe",
"efel",
"fastapi",
"langchain",
"langchain-cohere",
"langchain-openai",
"langgraph",
"langgraph-checkpoint-postgres",
"langgraph-checkpoint-sqlite",
"neurom",
"psycopg2-binary",
"pydantic-settings",
"python-dotenv",
"python-keycloak",
"python-multipart",
"sqlalchemy",
"uvicorn",
]

[project.optional-dependencies]
dev = [
"bandit[toml]",
"mypy",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest_asyncio",
"pytest_httpx",
"pytest-httpx",
"responses",
"ruff",
"types-requests",
]

[project.scripts]
neuroagent-api = "neuroagent.scripts.neuroagent_api:main"

[tool.setuptools.dynamic]
version = {attr = "neuroagent.__version__"}

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
namespaces = false

[tool.bandit]
exclude_dirs = ["tests"]

[tool.black]
line-length = 88
preview = true

[tool.ruff]
line-length = 88
target-version = "py310"

[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "D"]

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

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]

[tool.mypy]
mypy_path = "src"
python_version = "3.10"
ignore_missing_imports = true
no_implicit_optional = true
check_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
plugins = [
"pydantic.mypy", "sqlalchemy.ext.mypy.plugin"
]

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]

addopts = "--cov=src/ --cov=tests/ -v --cov-report=term-missing --durations=20 --no-cov-on-fail"

0 comments on commit e6621e9

Please sign in to comment.