forked from akaihola/darker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruff, linter dependencies, full check config
By default, the command `darker` now runs Black on the source code of Darker, the Darker GitHub Action, release tooling and `setup.py`. `--config=check-darker.toml` can now be used to run Flake8, Mypy, Pydocstyle, Pylint and Ruff on modified lines in above mentioned files. Those tools are included when installing with the `[test]` extra. The minimum ruff version is now 0.0.292, and its configuration in `pyproject.toml` has been updated accordingly.
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This is the Darker configuration file for running all the code formatters and linters | ||
# on the Darker code base. To use it, run: | ||
# $ darker --config=check-darker.toml | ||
|
||
[tool.black] | ||
# Darker makes Black read its configuration from the file indicated by the `--config` | ||
# option, so we need to mirror the same configuration here and in `pyproject.toml`. | ||
skip-string-normalization = false | ||
target-version = ["py311"] | ||
|
||
[tool.isort] | ||
# Darker makes isort read its configuration from the file indicated by the `--config` | ||
# option, so we need to mirror the same configuration here and in `pyproject.toml`. | ||
profile = "black" | ||
known_first_party = ["darkgraylib", "graylint"] | ||
known_third_party = ["pytest"] | ||
|
||
[tool.darker] | ||
src = [ | ||
"action", | ||
"release_tools", | ||
"src", | ||
"setup.py", | ||
] | ||
revision = "origin/master..." | ||
isort = true | ||
lint = [ | ||
"flake8", | ||
"mypy", | ||
"pydocstyle", | ||
"pylint", | ||
"ruff check", | ||
] |
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