Skip to content

Commit

Permalink
Update project information
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas H authored and Thomas H committed May 30, 2024
1 parent 0f518d4 commit 1c8dd01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ These features will be included in the next release:

Added
-----
- The `--preview` configuration flag is now supported in Darker CLI and Block
configuration file.

Fixed
-----
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ The following `command line arguments`_ can also be used to modify the defaults:
-t VERSION, --target-version VERSION
[py33\|py34\|py35\|py36\|py37\|py38\|py39\|py310\|py311\|py312] Python versions
that should be supported by Black's output. [default: per-file auto-detection]
--preview
Use black's preview future code style

To change default values for these options for a given project,
add a ``[tool.darker]`` section to ``pyproject.toml`` in the project's root directory,
Expand Down Expand Up @@ -412,6 +414,7 @@ An example ``pyproject.toml`` configuration file:
line-length = 80 # Passed to isort and Black, override their config
target-version = ["py312"] # Passed to Black, overriding its config
log_level = "INFO"
preview = false # Passed to Black, overriding its config
[tool.black]
line-length = 88 # Overridden by [tool.darker] above
Expand All @@ -421,6 +424,8 @@ An example ``pyproject.toml`` configuration file:
exclude = "test_*\.py"
extend_exclude = "/generated/"
force_exclude = ".*\.pyi"
preview = true # Overridden above
[tool.isort]
profile = "black"
Expand Down
2 changes: 2 additions & 0 deletions contributors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ talhajunaidd:
- {link_type: commits, type: Code}
tapted:
- {link_type: issues, type: Bug reports}
tehunter:
- {link_type: pulls-author, type: Code}
tgross35:
- {link_type: issues, type: Bug reports}
tkolleh:
Expand Down

0 comments on commit 1c8dd01

Please sign in to comment.