bumpver/setup.cfg

179 lines
3.9 KiB
INI
Raw Normal View History

2018-11-04 21:34:53 +01:00
[metadata]
license_file = LICENSE
[bdist_wheel]
universal = 1
[mypy]
check_untyped_defs = True
disallow_untyped_calls = True
follow_imports = silent
strict_optional = True
2020-08-26 21:49:01 +00:00
error_summary = False
2018-11-04 21:34:53 +01:00
ignore_missing_imports = True
2020-05-25 07:45:46 +00:00
show_error_codes = True
2020-07-19 21:24:40 +00:00
warn_unreachable = True
warn_return_any = True
warn_unused_ignores = True
warn_redundant_casts = True
2018-11-04 21:34:53 +01:00
2020-07-19 13:58:33 +00:00
[tool:isort]
2020-10-18 20:47:35 +00:00
known_first_party = bumpver
known_third_party = click,pathlib2,lexid,pkg_resources
2020-07-19 13:58:33 +00:00
force_single_line = True
length_sort = True
2018-09-02 21:48:12 +02:00
[flake8]
2018-11-04 21:34:53 +01:00
max-line-length = 100
2020-10-15 22:32:56 +00:00
max-complexity = 12
2018-11-04 21:07:25 +01:00
ignore =
2018-11-09 19:22:17 +01:00
# Missing trailing comma (handled by sjfmt)
C812
2018-11-04 21:07:25 +01:00
# No whitespace after paren open "("
2018-11-04 21:34:53 +01:00
E201
2018-11-04 21:07:25 +01:00
# No whitespace before paren ")"
2018-11-04 21:34:53 +01:00
E202
2018-11-11 17:50:01 +01:00
# Whitespace before ":"
2018-11-04 21:34:53 +01:00
E203
2018-11-04 21:07:25 +01:00
# Multiple spaces before operator
E221
2018-11-11 17:50:01 +01:00
# Multiple spaces after operand
E222
2020-07-19 21:24:40 +00:00
# Missing whitespace after ','
E231
2020-05-25 07:45:46 +00:00
# Multiple spaces after ':'
E241
2018-11-04 21:07:25 +01:00
# Spaces around keyword/parameter equals
E251
2020-05-25 07:45:46 +00:00
# Multiple spaces before keyword
E272
2018-11-04 21:07:25 +01:00
# Line too long (B950 is used instead)
2018-11-04 21:34:53 +01:00
E501
2018-11-04 21:07:25 +01:00
# Line break before binary op
2018-11-04 21:34:53 +01:00
W503
2018-11-04 21:07:25 +01:00
# Line break after binary op
W504
2018-11-04 21:34:53 +01:00
# Missing docstring in public module
2018-12-09 14:17:51 +01:00
D100
2018-11-04 21:34:53 +01:00
# Missing docstring in public class
2018-12-09 14:17:51 +01:00
D101
# Missing docstring in public method
D102
# Missing docstring in public function
D103
2020-07-19 13:58:33 +00:00
# Missing docstring in public package
# D104
2020-05-25 07:45:46 +00:00
# Missing docstring in magic method
# D105
2018-11-04 21:34:53 +01:00
# Missing docstring on __init__
D107
2018-11-15 22:16:16 +01:00
# No blank lines allowed after function docstring
D202
2020-05-25 07:45:46 +00:00
# First line should end in a period
D400
2018-11-11 17:50:01 +01:00
# First line should be in imperative mood
D401
2020-10-05 20:52:04 +00:00
select = A,AAA,D,C,E,F,W,H,B,D212,D404,D405,D406,B901,B950,YTT
2018-11-04 21:34:53 +01:00
exclude =
.git
__pycache__
.eggs/
dist/
.mypy_cache
2018-09-02 21:48:12 +02:00
2018-11-04 21:07:25 +01:00
[tool:pytest]
2018-11-04 21:34:53 +01:00
addopts = --doctest-modules
2018-11-04 21:07:25 +01:00
2018-09-02 21:48:12 +02:00
2020-10-18 20:47:35 +00:00
[bumpver]
2023-05-04 16:02:46 +00:00
current_version = "2023.1121"
2020-10-18 20:47:35 +00:00
version_pattern = "YYYY.BUILD[-TAG]"
2020-10-03 18:37:35 +00:00
commit_message = "bump {old_version} -> {new_version}"
2018-09-02 21:48:12 +02:00
commit = True
tag = True
2018-12-05 09:37:34 +01:00
push = True
2018-09-02 21:48:12 +02:00
2020-10-18 20:47:35 +00:00
[bumpver:file_patterns]
2018-12-05 09:42:26 +01:00
bootstrapit.sh =
2020-09-24 19:21:57 +00:00
PACKAGE_VERSION="{version}"
2018-12-05 09:42:26 +01:00
setup.cfg =
2020-09-24 19:21:57 +00:00
current_version = "{version}"
2018-12-05 09:42:26 +01:00
setup.py =
version="{pep440_version}",$
2020-10-18 20:47:35 +00:00
src/bumpver/__init__.py =
^__version__ = "{version}"$
2020-10-18 20:47:35 +00:00
src/bumpver/cli.py =
2020-10-04 17:21:45 +00:00
@click.version_option(version="{version}")
2020-10-18 20:47:35 +00:00
src/bumpver/*.py =
2020-09-24 19:21:57 +00:00
Copyright (c) 2018-YYYY
LICENSE =
Copyright (c) 2018-YYYY
license.header =
Copyright (c) 2018-YYYY
2018-12-05 09:42:26 +01:00
README.md =
2020-10-15 19:54:26 +00:00
\[CalVer {version}\]
img.shields.io/static/v1.svg?label=CalVer&message={version}&color=blue
2020-10-18 20:47:35 +00:00
Successfully installed bumpver-{pep440_version}
2020-07-19 13:58:33 +00:00
[tool:pylint]
2020-07-19 19:07:30 +00:00
score = no
2020-08-26 21:49:01 +00:00
reports = no
2020-07-19 13:58:33 +00:00
2020-10-04 17:21:45 +00:00
jobs = 4
2020-07-19 13:58:33 +00:00
# Set the output format. Available formats are text, parseable, colorized,
# msvs (visual studio) and html. You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format = colorized
# Maximum number of locals for function / method body
max-locals = 17
2020-07-19 13:58:33 +00:00
# Maximum number of arguments for function / method
max-args = 9
2020-07-19 13:58:33 +00:00
2020-10-15 22:32:56 +00:00
# Maximum number of branch for function / method body
max-branches = 14
2020-07-19 13:58:33 +00:00
good-names = logger,i,ex
# These are packages that are implemented as c extensions and
# which pylint cannot do introspection on.
extension-pkg-whitelist = numpy,pandas,lxml,PIL,sklearn,pyblake2
notes=TODO,FIXME,XXX,SLOW,BUG
2020-08-26 21:49:01 +00:00
# similarities/duplicaition checker
min-similarity-lines=4
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=yes
2020-10-04 17:21:45 +00:00
ignored-argument-names=args|kwargs
2020-07-19 13:58:33 +00:00
# https://pylint.pycqa.org/en/stable/technical_reference/features.html
disable =
bad-continuation,
bad-whitespace,
2020-07-19 14:38:57 +00:00
line-too-long,
logging-not-lazy,
2020-07-19 13:58:33 +00:00
logging-fstring-interpolation,
2020-07-19 14:38:57 +00:00
no-else-return,
no-else-raise,
2020-07-19 21:24:40 +00:00
too-few-public-methods,
2020-07-19 13:58:33 +00:00
missing-docstring,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
2020-08-26 22:26:30 +00:00
raise-missing-from,
2020-09-07 21:43:55 +00:00
duplicate-code,
2020-09-18 17:50:13 +00:00
ungrouped-imports,
2020-09-07 21:43:55 +00:00
generated-members =
# members of typing.NamedTuple
"(_replace|_asdict|_fields)",