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

fix: do not change format of Python version files #782

Merged
merged 2 commits into from
Feb 20, 2021

Conversation

targos
Copy link
Contributor

@targos targos commented Feb 19, 2021

Fixes: #777

@targos targos requested a review from a team as a code owner February 19, 2021 08:26
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Feb 19, 2021
@codecov
Copy link

codecov bot commented Feb 19, 2021

Codecov Report

Merging #782 (87bd0c5) into master (fb9aa22) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #782   +/-   ##
=======================================
  Coverage   91.30%   91.30%           
=======================================
  Files          62       62           
  Lines        8165     8165           
  Branches      810      810           
=======================================
  Hits         7455     7455           
  Misses        707      707           
  Partials        3        3           
Impacted Files Coverage Δ
src/updaters/python/setup-cfg.ts 100.00% <100.00%> (ø)
src/updaters/python/setup-py.ts 100.00% <100.00%> (ø)
src/updaters/python/version-py.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb9aa22...23b6f2c. Read the comment docs.

@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.5.0"
__version__ = '0.5.0'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did this and the snapshot need to change? in any case I think black uses "?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this to have at least one test that would not pass before the fix.
I don't know why the snapshot needed to change. I guess whatever files are involved in it had a different formatting

/version ?= ?[0-9]+\.[0-9]+\.[0-9](-\w+)?/,
`version = ${this.version}`
/(version ?= ?)[0-9]+\.[0-9]+\.[0-9](?:-\w+)?/,
`$1${this.version}`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@bcoe bcoe merged commit 10f7ab9 into googleapis:master Feb 20, 2021
@targos targos deleted the version-py branch February 20, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatting of setup.py is changed by release-please
3 participants