-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
82 lines (68 loc) · 2.5 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
[tool.poetry]
name = "brew-file"
version = "9.2.0"
description = "Brewfile manager for Homebrew"
authors = ["rcmdnk <rcmdnk@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.9.0"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.0"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.3.1"
pyproject-pre-commit = "^0.2.4"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-n auto"
testpaths = ["tests",]
[tool.black]
line-length = 79
[tool.autoflake]
remove-all-unused-imports = true
expand-star-imports = true
remove-duplicate-keys = true
remove-unused-variables = true
[tool.autopep8]
ignore = "E203,E501,W503"
recursive = true
aggressive = 3
[tool.isort]
profile = "black"
line_length = 79
[tool.flake8]
# E203 is not PEP8 compliant and black insert space around slice: [Frequently Asked Questions - Black 22.12.0 documentation](https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated)
# E501: Line too long. Disable it to allow long lines of comments and print lines which black allows.
# W503 is the counter part of W504, which follows current PEP8: [Line break occurred before a binary operator (W503)](https://www.flake8rules.com/rules/W503.html)
# D100~D106: Missing docstrings other than class (D101)
# D401: First line should be in imperative mood
ignore = "E203,E501,W503,D100,D102,D103,D104,D105,D106,D401"
#max-complexity = 10
#max-annotations-complexity=4
docstring-convention = "numpy"
[tool.bandit]
exclude_dirs = ["tests"]
# B404: import subprocess -> until fixing w/o subprocess
# B603: subprocess_without_shell_equals_true-> until fixing w/o subprocess, difficult to manage multi arguments especially for arguments including quotes with shell=True
# B607: start_process_with_partial_path: until fixing w/o subprocess, difficult to run fixed path on multi environments
skips = ["B404", "B603", "B607"]
[tool.mypy]
files = ["bin/brew-file", "src/**/*.py"]
strict = true
warn_return_any = false
ignore_missing_imports = true
scripts_are_modules = true
install_types = true
non_interactive = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"EX01", # "No examples section found"
"ES01", # "No extended summary found"
"SA01", # "See Also section not found"
"GL08", # "The object does not have a docstring"
"PR01", # "Parameters {missing_params} not documented"
"RT01", # "No Returns section found"
]
[tool.poetry.scripts]
brew-file = "brew_file.main:main"