Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to not wrap lines with comments #24

Merged
merged 9 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
proseWrap: always
printWidth: 79
printWidth: 88
endOfLine: auto
27 changes: 15 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Change Log

## Unreleased

- Added
- A new option `--wrap-comments` to not wrap any comments (not just pragma comments)

## [0.1.5] - 2023-05-09

- Added
- Configurability to use tabs instead of spaces (two new options:
`--use-tabs` and `--tab-width`)
- Configurability on base indentation spaces and extra indentation at
different line continuation situations
- Configurability to use tabs instead of spaces (two new options: `--use-tabs` and
`--tab-width`)
- Configurability on base indentation spaces and extra indentation at different line
continuation situations

## [0.1.4] - 2023-05-07

Expand All @@ -32,8 +37,7 @@
## [0.1.2] - 2023-05-04

- Added
- Merged 2 changes from psf/black:main
([#5](https://github.com/jsh9/cercis/pull/5))
- Merged 2 changes from psf/black:main ([#5](https://github.com/jsh9/cercis/pull/5))
- Added option to not wrap "simple" lines with long strings
([#6](https://github.com/jsh9/cercis/pull/6))
- Full changelog
Expand All @@ -42,8 +46,7 @@
## [0.1.1] - 2023-05-03

- Added
- A configurable option: `single-quote`, for formatting code into single
quotes
- A configurable option: `single-quote`, for formatting code into single quotes
- Full changelog
- https://github.com/jsh9/cercis/compare/0.1.0...0.1.1

Expand All @@ -52,10 +55,10 @@
- This is the initial version that branches away from Black (commit:
[e712e4](https://github.com/psf/black/commit/e712e48e06420d9240ce95c81acfcf6f11d14c83))
- Changed
- The default indentation within a function definition (when line wrap
happens) is now 8 spaces. (Black's default is 4, which is
- The default indentation within a function definition (when line wrap happens) is now
8 spaces. (Black's default is 4, which is
[not PEP8-compatible](https://github.com/psf/black/issues/1127))
- Updated README, because `cercis` now branches away from Black
- Added
- A configurable option (`function-definition-extra-indent`) is added instead
of enforcing 8 spaces for everyone
- A configurable option (`function-definition-extra-indent`) is added instead of
enforcing 8 spaces for everyone
Loading