-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
266 additions
and
235 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
repos: | ||
- hooks: | ||
- id: black | ||
repo: https://github.com/psf/black | ||
rev: 24.10.0 | ||
- hooks: | ||
- id: isort | ||
language_version: python3 | ||
repo: https://github.com/timothycrosley/isort | ||
rev: 5.13.2 | ||
- hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-debugger | ||
- flake8-string-format | ||
repo: https://github.com/pycqa/flake8 | ||
rev: 7.1.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.9.7 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,142 @@ | ||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
[tool.bumpversion] | ||
current_version = "0.4.0" | ||
commit = true | ||
tag = true | ||
tag_name = "{new_version}" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "setup.py" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
exclude_also = [ | ||
"if TYPE_CHECKING:", | ||
] | ||
|
||
[tool.ruff.lint] | ||
extend-select = [ | ||
# flake8-bugbear | ||
"B", | ||
# flake8-comprehensions | ||
"C4", | ||
# pydocstyle | ||
"D", | ||
# flake8-future-annotations | ||
"FA", | ||
# flynt | ||
"FLY", | ||
# refurb | ||
"FURB", | ||
# isort | ||
"I", | ||
# flake8-implicit-str-concat | ||
"ISC", | ||
# flake8-logging | ||
"LOG", | ||
# Perflint | ||
"PERF", | ||
# pygrep-hooks | ||
"PGH", | ||
# flake8-pie | ||
"PIE", | ||
# pylint | ||
"PL", | ||
# flake8-use-pathlib | ||
"PTH", | ||
# flake8-pyi | ||
"PYI", | ||
# flake8-quotes | ||
"Q", | ||
# flake8-return | ||
"RET", | ||
# flake8-raise | ||
"RSE", | ||
# Ruff-specific rules | ||
"RUF", | ||
# flake8-bandit | ||
"S", | ||
# flake8-simplify | ||
"SIM", | ||
# flake8-slots | ||
"SLOT", | ||
# flake8-debugger | ||
"T10", | ||
# flake8-type-checking | ||
"TC", | ||
# pyupgrade | ||
"UP", | ||
# pycodestyle warnings | ||
"W", | ||
# flake8-2020 | ||
"YTT", | ||
] | ||
ignore = [ | ||
# Missing docstring in public module | ||
"D100", | ||
# Missing docstring in public class | ||
"D101", | ||
# Missing docstring in public method | ||
"D102", | ||
# Missing docstring in public function | ||
"D103", | ||
# Missing docstring in public package | ||
"D104", | ||
# Missing docstring in magic method | ||
"D105", | ||
# Missing docstring in public nested class | ||
"D106", | ||
# Missing docstring in __init__ | ||
"D107", | ||
# One-line docstring should fit on one line with quotes | ||
"D200", | ||
# No blank lines allowed after function docstring | ||
"D202", | ||
# 1 blank line required between summary line and description | ||
"D205", | ||
# Multi-line docstring closing quotes should be on a separate line | ||
"D209", | ||
# First line should end with a period | ||
"D400", | ||
# First line should be in imperative mood; try rephrasing | ||
"D401", | ||
# First line should not be the function's "signature" | ||
"D402", | ||
# First word of the first line should be properly capitalized | ||
"D403", | ||
# `try`-`except` within a loop incurs performance overhead | ||
"PERF203", | ||
# Too many return statements | ||
"PLR0911", | ||
# Too many branches | ||
"PLR0912", | ||
# Too many arguments in function definition | ||
"PLR0913", | ||
# Too many statements | ||
"PLR0915", | ||
# Magic value used in comparison | ||
"PLR2004", | ||
# `for` loop variable `line` overwritten by assignment target | ||
"PLW2901", | ||
# String contains ambiguous {}. | ||
"RUF001", | ||
# Docstring contains ambiguous {}. | ||
"RUF002", | ||
# Comment contains ambiguous {}. | ||
"RUF003", | ||
# Mutable class attributes should be annotated with `typing.ClassVar` | ||
"RUF012", | ||
# Use of `assert` detected | ||
"S101", | ||
|
||
# to be done when adding type hints | ||
# Use `typing.NamedTuple` instead of `collections.namedtuple` | ||
"PYI024", | ||
] | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "pep257" | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = ["S"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.