generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
140 lines (120 loc) · 3.65 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
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
130
131
132
133
134
135
136
137
138
139
140
[tool.poetry]
name = "fawltydeps"
version = "0.1.1"
description = "Find undeclared 3rd-party dependencies in your Python project."
authors = [
"Maria Knorps <maria.knorps@tweag.io>",
"Nour El Mawass <nour.elmawass@tweag.io>",
"Johan Herland <johan.herland@tweag.io>"
]
readme = "README.md"
license = "MIT"
repository = "https://github.com/tweag/FawltyDeps"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Utilities",
"Typing :: Typed",
]
[tool.poetry.scripts]
fawltydeps = "fawltydeps.main:main"
[tool.poetry.dependencies]
# These are the main dependencies for fawltydeps at runtime.
# Do not add anything here that is only needed by CI/tests/linters/developers
python = "^3.7.2"
importlib_metadata = {version = "^5.0.0", python = "<3.11"}
isort = "^5.10"
pydantic = "^1.10.4"
tomli = {version = "^2.0.1", python = "<3.11"}
typing-extensions = {version = "^4.4.0", python = "<3.8"}
[tool.poetry.group.nox]
optional = true
[tool.poetry.group.nox.dependencies]
nox = "^2022.11.21"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.1.0"
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
mypy = "^0.991"
nox = "^2022.11.21"
pylint = "^2.15.8"
pytest = "^7.1.0"
types-setuptools = "^65.6.0.2"
[tool.poetry.group.format]
optional = true
[tool.poetry.group.format.dependencies]
black = "^22"
colorama = "^0.4.6"
isort = "^5.10"
codespell = "^2.2.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# The dev group is a convenience group for FawltyDeps developers. When adding
# something to the above groups (i.e. something that targets a specific purpose
# (e.g. a CI action), consider whether it's also useful to have this available
# in a developers environment
black = "^22"
codespell = "^2.2.2"
colorama = "^0.4.6"
isort = "^5.10"
mypy = "^0.991"
nox = "^2022.11.21"
pylint = "^2.15.8"
pytest = "^7.1.0"
types-setuptools = "^65.6.0.2"
[tool.black]
target-version = ["py37"]
[tool.isort]
profile = "black"
[tool.pylint]
main.jobs = 4
main.py-version = "3.7"
reports.output-format = "colorized"
"messages control".disable = "fixme,logging-fstring-interpolation,unspecified-encoding"
[tool.mypy]
files = ['*.py', 'fawltydeps/*.py', 'tests/*.py']
plugins = ["pydantic.mypy"]
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = "fawltydeps.*"
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_any_unimported = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_subclassing_any = true
implicit_optional = false
strict_optional = true
[tool.pytest.ini_options]
minversion = 7.0
markers = [
"integration: marks integration tests (disabled by default, enable with '-m integration')",
]
addopts = "-m 'not integration'"
cache_dir = "~/.cache/pytest"
[tool.codespell]
skip = ".git,.mypy_cache,.nox,.vscode,__pycache__"
builtin = "clear,rare,informal,usage,code,names"
ignore-words-list = "jupyter,iff" # prevent jupyter -> jupiter, iff -> if
check-filenames = true
uri-ignore-words-list = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"