-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (106 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
129 lines (106 loc) · 2.98 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[tool.poetry]
name = "restcountries_cli"
version = "0.0.1"
description = "Client for rest countries API to access data"
authors = ["martingaldeca <[email protected]>"]
maintainers = ["martingaldeca <[email protected]>"]
readme = "README.rst"
keywords = ["restcountries", "country", "countries", "data", "api"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Topic :: Utilities",
"Typing :: Typed",
]
license = "MIT"
packages = [{ include = "restcountries_cli" }]
repository = "https://github.com/martingaldeca/restcountries_cli"
[tool.poetry.dependencies]
python = ">=3.9,<4.0.0"
pydantic = "2.1.1"
requests-cache = "1.1.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "7.4.0"
pytest-xdist = "3.3.1"
pytest-cov = "4.1.0"
ipdb = "0.13.13"
factory-boy = "3.3.0"
responses = "0.23.2"
[tool.poetry.group.autohooks]
optional = true
[tool.poetry.group.autohooks.dependencies]
autohooks = ">=23.4.0"
autohooks-plugin-isort = "23.4.0"
autohooks-plugin-black = "23.4.0"
autohooks-plugin-pylint = "23.4.0"
autohooks-plugin-ruff = "23.6.1"
#
[tool.poetry.group.local]
optional = true
[tool.poetry.group.local.dependencies]
ipython = "8.14.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "7.1.1"
sphinx-copybutton = "0.5.2"
furo = "2023.7.26"
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
ruff = '0.0.280'
mypy = "1.4.1"
pylint = "2.17.5"
[tool.poetry.group.formatting]
optional = true
[tool.poetry.group.formatting.dependencies]
black = "23.7.0"
blacken-docs = "1.15.0"
isort = "5.12.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pylint]
max-line-length = 120
disable = ["C0325", "C0114", "R0902"]
ignore-paths = ["restcountries_cli/factories.py", ] # Factories not needed to run pylint
[tool.black]
line-length = 120
[tool.isort]
skip = "__init__.py"
src_paths = ["restcountries_cli", "tests"]
[tool.coverage.run]
relative_files = true
omit = ["*/tests/*"]
[tool.ruff]
line-length = 120
src = ["restcountries_cli", "tests", "docs/examples"]
target-version = "py311"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.isort]
known-first-party = ["restcountries_cli", "tests"]
[tool.mypy]
plugins = "pydantic.mypy"
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
warn_return_any = true
strict = false
disallow_untyped_decorators = true
disallow_any_generics = false
implicit_reexport = false
show_error_codes = true
ignore_missing_imports = true
[tool.autohooks]
mode = "poetry"
pre-commit = ["autohooks.plugins.isort", "autohooks.plugins.black", "autohooks.plugins.pylint", "autohooks.plugins.ruff"]