-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `taplo` pre-commit hook to format and sort `toml` files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Create 1207.internal.rst * Rename 1207.internal.rst to 1207.contributor.rst --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6855d37
commit a26ca43
Showing
4 changed files
with
173 additions
and
191 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
extend = "pyproject.toml" | ||
|
||
lint.ignore = [ | ||
# NOTE: To find a rule code to fix, run: | ||
# ruff --select="ALL" --statistics src/geovista/<subpackage> | ||
# NOTE: To find a rule code to fix, run: | ||
# ruff --select="ALL" --statistics src/geovista/<subpackage> | ||
|
||
# flake8-boolean-trap (FBT) | ||
# https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt | ||
# NOTE: A good thing to fix, but changes API. | ||
"FBT001", # boolean-positional-arg-in-function-definition. | ||
"FBT002", # boolean-default-value-in-function-definition. | ||
"FBT003", # boolean-positional-value-in-function-call. | ||
# flake8-boolean-trap (FBT) | ||
# https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt | ||
# NOTE: A good thing to fix, but changes API. | ||
"FBT001", # boolean-positional-arg-in-function-definition. | ||
"FBT002", # boolean-default-value-in-function-definition. | ||
"FBT003", # boolean-positional-value-in-function-call. | ||
|
||
# Pylint (PL) | ||
# https://docs.astral.sh/ruff/rules/#pylint-pl | ||
"PLR0912", # Too many branches. | ||
"PLR0913", # Too many arguments in function definition. | ||
"PLR0915", # Too many statements. | ||
"PLR2004", # Magic value used in comparison, consider replacing with a constant. | ||
"PLW0603", # Using the global statement to update is discouraged. | ||
# Pylint (PL) | ||
# https://docs.astral.sh/ruff/rules/#pylint-pl | ||
"PLR0912", # Too many branches. | ||
"PLR0913", # Too many arguments in function definition. | ||
"PLR0915", # Too many statements. | ||
"PLR2004", # Magic value used in comparison, consider replacing with a constant. | ||
"PLW0603", # Using the global statement to update is discouraged. | ||
|
||
# flake8-self (SLF) | ||
# https://docs.astral.sh/ruff/rules/#flake8-self-slf | ||
"SLF001", # Private member accessed. | ||
# flake8-self (SLF) | ||
# https://docs.astral.sh/ruff/rules/#flake8-self-slf | ||
"SLF001", # Private member accessed. | ||
|
||
# flake8-todos (TD) | ||
# https://docs.astral.sh/ruff/rules/#flake8-todos-td | ||
"TD003", # Missing issue link on the line following this TODO. | ||
# flake8-todos (TD) | ||
# https://docs.astral.sh/ruff/rules/#flake8-todos-td | ||
"TD003", # Missing issue link on the line following this TODO. | ||
] | ||
|
||
[lint.extend-per-file-ignores] | ||
"conftest.py" = [ | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN001", # Missing type annotation for function argument. | ||
"ANN201", # Missing return type annotation for public function. | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN001", # Missing type annotation for function argument. | ||
"ANN201", # Missing return type annotation for public function. | ||
] | ||
"src/geovista/geoplotter.py" = [ | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN401", # Dynamically typed expressions (typing.Any). | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN401", # Dynamically typed expressions (typing.Any). | ||
] | ||
"test_*.py" = [ | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN001", # Missing type annotation for function argument. | ||
"ANN201", # Missing return type annotation for public funciton. | ||
# flake8-annotations (ANN) | ||
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann | ||
"ANN001", # Missing type annotation for function argument. | ||
"ANN201", # Missing return type annotation for public funciton. | ||
] | ||
"test_slice_lines.py" = [ | ||
# eradicate (ERA) | ||
# https://docs.astral.sh/ruff/rules/#eradicate-era | ||
"ERA001", # Found commented-out code. | ||
# eradicate (ERA) | ||
# https://docs.astral.sh/ruff/rules/#eradicate-era | ||
"ERA001", # Found commented-out code. | ||
] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `taplo <https://github.com/tamasfe/taplo>`__ pre-commit hook to format and sort toml files. (:user:`tkoyama010`) |
Oops, something went wrong.