forked from andreoliwa/nitpick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (108 loc) · 4.03 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
[tool.nitpick]
# Use the default style and override some things (like the Python version)
style = [
"nitpick-style",
"py://nitpick/resources/python/37.toml",
"py://nitpick/resources/python/stable.toml"
]
[tool.black]
line-length = 120
[tool.poetry]
name = "nitpick"
version = "0.32.0"
description = "Enforce the same settings across multiple language-independent projects"
authors = ["W. Augusto Andreoli <[email protected]>"]
license = "MIT"
readme = "README.rst"
repository = "https://github.com/andreoliwa/nitpick"
keywords = ["python3", "flake8", "linter", "styleguide"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
]
[tool.poetry.urls]
"Documentation" = "https://nitpick.rtfd.io/"
"Changelog" = "https://github.com/andreoliwa/nitpick/blob/develop/CHANGELOG.md"
"Issue Tracker" = "https://github.com/andreoliwa/nitpick/issues"
[tool.poetry.scripts]
nitpick = "nitpick.cli:nitpick_cli"
[tool.poetry.plugins."flake8.extension"]
NIP = "nitpick.flake8:NitpickFlake8Extension"
[tool.poetry.plugins.nitpick]
text = "nitpick.plugins.text"
json = "nitpick.plugins.json"
ini = "nitpick.plugins.ini"
toml = "nitpick.plugins.toml"
yaml = "nitpick.plugins.yaml"
[tool.poetry.dependencies]
python = "^3.7"
# TODO: build: upgrading importlib-metadata to 4.10.1 downgrades the following packages:
# • Updating importlib-metadata (4.2.0 -> 4.10.1)
# • Updating pycodestyle (2.8.0 -> 2.7.0)
# • Updating pyflakes (2.4.0 -> 2.3.1)
# • Updating flake8 (4.0.1 -> 3.9.2)
flake8 = ">=3.0.0"
attrs = ">=20.1.0" # attr.define introduced in this version
tomlkit = ">=0.8.0" # SingleKey() class introduced in this version
toml = "*" # TODO: refactor: use only tomlkit and remove uiri/toml
requests = "*"
dictdiffer = "*"
"ruamel.yaml" = "*"
python-slugify = "*"
jmespath = "*"
sortedcontainers = "*"
click = "*"
# Pin marshmallow to avoid error on "pip install -U nitpick":
# marshmallow-polyfield 5.7 has requirement marshmallow>=3.0.0b10, but you'll have marshmallow 2.19.5 which is incompatible.
marshmallow = { version = ">=3.0.0b10" }
# Pin to avoid error on "flake8 ." when there is an invalid TOML style:
# TypeError: _deserialize() got an unexpected keyword argument 'partial'
marshmallow-polyfield = "^5.10"
identify = "*"
"more-itertools" = "*"
pluggy = "*"
autorepr = "*"
loguru = "*"
ConfigUpdater = "*"
importlib-resources = { version = "*", python = ">=3.7, <3.9" }
flatten-dict = "*"
dpath = "*"
furl = "*"
StrEnum = "*"
# TODO: chore: move to dependency groups once the feature is on a stable version of Poetry
# https://python-poetry.org/docs/master/managing-dependencies/#dependency-groups
# Group: lint
pylint = { version = "*", optional = true }
# Group: test
pytest = { version = "*", optional = true }
pytest-cov = { version = "*", optional = true }
testfixtures = { version = "*", optional = true }
responses = { version = "*", optional = true }
freezegun = { version = "*", optional = true }
pytest-testmon = { version = "*", optional = true }
pytest-watch = { version = "*", optional = true }
pytest-socket = "*"
pytest-datadir = { version = "*", optional = true }
# Group: doc
sphinx = { version = "*", optional = true }
sphinx_rtd_theme = { version = "*", optional = true }
sphobjinv = { version = "*", optional = true }
sphinx-gitref = { version = "*", optional = true }
requests-cache = ">=0.9.2" # This version introduced requests_cache.cache_control.NEVER_EXPIRE
[tool.poetry.extras]
lint = ["pylint"]
test = ["pytest", "pytest-cov", "testfixtures", "responses", "freezegun", "pytest-testmon", "pytest-watch", "pytest-socket", "pytest-datadir"]
doc = ["sphinx", "sphinx_rtd_theme", "sphobjinv", "sphinx-gitref"]
[tool.poetry.dev-dependencies]
ipython = "*"
pudb = "*"
icecream = "*"
[build-system]
# https://github.com/python-poetry/poetry/issues/1993
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"