-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
79 lines (59 loc) · 2.06 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
[tool.poetry]
name = "ni-python-styleguide"
# The a.0 here denotes a source based version
# This is removed when released through the Publish-Package.yml GitHub action
# Official PyPI releases follow Major.Minor.Patch
version = "0.4.6a0"
description = "NI's internal and external Python linter rules and plugins"
authors = ["NI <[email protected]>"]
readme = "README.md" # apply the repo readme to the package as well
repository = "https://github.com/ni/python-styleguide"
license = "MIT"
include = ["ni_python_styleguide/config.toml"]
[tool.poetry.dependencies]
python = "^3.7"
pathspec = ">=0.11.1"
# Tools we aggregate
flake8 = [
{version = "^5.0", python = ">=3.7,<3.12"},
{version = "^6.1", python = "^3.12"},
]
pycodestyle = [
{version = "^2.9", python = ">=3.7,<3.12"},
{version = "^2.11", python = "^3.12"},
]
black = ">=23.1"
# Additional support libraries
# These dependencies were selected because they are already used by black.
click = ">=7.1.2"
toml = ">=0.10.1"
isort = ">=5.10"
# flake8 plugins should be listed here (in alphabetical order)
flake8-black = ">=0.2.1"
flake8-docstrings = ">=1.5.0"
flake8-import-order = ">=0.18.1"
pep8-naming = ">=0.11.1"
# Rejected flake8 plugins should be listed here (in alphabetical order)
# Also describe why it is rejected and/or add a link
# flake8-commas: Already handled by flake8-black
# flake8-isort: Already covered by flake8-import-order
# hacking: Most rules are either covered by other plugins or would be turned off.
# Tooling that we're locking so our tool can run
importlib-metadata = {version= "<5.0", python="<3.8"}
[tool.poetry.dev-dependencies]
pytest = ">=6.0.1"
pytest_click = ">=1.0.2"
pytest-snapshot = ">=0.6.3"
[tool.poetry.scripts]
ni-python-styleguide = 'ni_python_styleguide._cli:main'
nps = 'ni_python_styleguide._cli:main'
[tool.black]
line-length = 100
[tool.pytest.ini_options]
addopts = "--doctest-modules"
norecursedirs = "*__snapshots"
[tool.ni-python-styleguide]
extend_exclude = "*__snapshots/*/*input.py"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"