Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (45 loc) · 1.89 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (45 loc) · 1.89 KB
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
46
47
48
49
50
51
52
53
54
[tool.poetry]
name = "api_client_framework"
version = "0.1.0"
description = "Class-based helper for constructing API clients"
authors = ["EnriqueSoria <me@enriquesoria.es>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/EnriqueSoria/api_client_framework"
[tool.poetry.dependencies]
python = "^3.7"
requests = "^2.31"
[tool.poetry.group.dev.dependencies]
ruff = "==0.3.4"
[tool.ruff]
target-version = "py37"
line-length = 100
src = ["app", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"TID251", # https://docs.astral.sh/ruff/rules/banned-api/
"TID252", # https://docs.astral.sh/ruff/rules/relative-imports/
"FA102", # https://docs.astral.sh/ruff/rules/future-required-type-annotation/
"DJ008", # https://docs.astral.sh/ruff/rules/django-model-without-dunder-str/
"B006", # https://docs.astral.sh/ruff/rules/mutable-argument-default/
"B009", # https://docs.astral.sh/ruff/rules/get-attr-with-constant/
"B010", # https://docs.astral.sh/ruff/rules/set-attr-with-constant/
"B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"T100", # https://docs.astral.sh/ruff/rules/debugger/
"INT001", # https://docs.astral.sh/ruff/rules/f-string-in-get-text-func-call/
"S307", # https://docs.astral.sh/ruff/rules/eval/
"PLE0302", # https://docs.astral.sh/ruff/rules/unexpected-special-method-signature/
"PLE0307", # https://docs.astral.sh/ruff/rules/invalid-str-return-type/
"PLW0120", # https://docs.astral.sh/ruff/rules/useless-else-on-loop/
]
unfixable = [
"F841", # Disable autofix for unused variables (`F841`)
"I", # Disable autofix for imports (`I`)
"TID252", # Disable fix of imports because it doesn't do it properly
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"