-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
45 lines (37 loc) · 1.22 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tool.poetry]
name = "example_project"
version = "0.0.1"
description = "This is an example how to use ruff and poetry."
authors = ["Johannes Schöck <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
numpy = "^1.26"
pandas = "^2.1"
[tool.poetry.group.dev.dependencies]
# installing without these dependencies: poetry install --without dev
ipykernel = "^6.25"
ipython = "^8.14"
pytest = "^8.0"
ruff = "^0.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
# https://docs.astral.sh/ruff/configuration/#using-pyprojecttoml
target-version = "py311"
line-length = 120
show-fixes = true
select = ["E", "F", "B", "D", "W", "I", "N", "ANN", "COM", "C4", "EM", "PT", "SIM", "RUF", "NPY", "TRY", "PLW", "PLE", "PLC", "PLR", "PD"]
ignore = ["E501", "ANN101", "D100", "D103", "D206", "D300", "D104", "N803", "N806", "PD901", "RUF005", "E712", "COM812", "COM819", "E111", "E114", "E117", "W191"]
unfixable = ["F401", "F841"]
task-tags = ["TODO", "BUG", "NOTE"]
[tool.ruff.flake8-quotes]
inline-quotes = "double"
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
[tool.pyright]
pythonVersion = "3.11"