GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added tox config with flake8 and nosetests. by tmatsuo · Pull Request #6 · GoogleCloudPlatform/python-docs-samples

Conversation

@tmatsuo

@tmatsuo tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tmatsuo tmatsuo assigned elibixby May 8, 2015
@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

@elibixby I'd appreciate it if you could take a look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo tmatsuo mentioned this pull request May 8, 2015
Enable travis and coveralls #8
Closed
elibixby
elibixby reviewed May 8, 2015
View reviewed changes
Comment thread app.yaml Outdated

@elibixby elibixby May 8, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

application and version field are supposed to be deprecated yes? Could we move these to env vars?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tmatsuo tmatsuo May 8, 2015

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done, we don't need those values

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

Thanks, PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

elibixby
elibixby reviewed May 8, 2015
View reviewed changes
Comment thread .coveragerc

@elibixby elibixby May 8, 2015

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Merging #2 So please add bigquery/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@elibixby

elibixby commented May 8, 2015

Copy link
Copy Markdown
Contributor

Besides comment LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Takashi Matsuo added 4 commits May 8, 2015 11:08
Takashi Matsuo
Added tox config with flake8 and nosetests.
19e88dd
Takashi Matsuo
Started to cover datastore/ndb/transactions. Added a dummy 'lib' dir.
a4803ce
Takashi Matsuo
Use absolute imports. Removed application and version from app.yaml.
3222ab6
Takashi Matsuo
Added bigquery directory.
a610842
@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

Well, this time I'm going to add bigquery, but it shows 100 lines of flake8 errors (and I need to fix them).
Can you stop merging new directory before merging the tox config?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@elibixby

elibixby commented May 8, 2015

Copy link
Copy Markdown
Contributor

Yeah Sorry! That's weird I ran flake on it right before merging and it was fine! (oh except I ran the licensing tool after that, I bet those 100 lines of errors are in the licenses...)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

Yes, turns out that it's not a big problem

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

Ugh, that's not limited to licenses. Anyways, I'll try to fix them

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Takashi Matsuo added 2 commits May 8, 2015 14:11
Takashi Matsuo
Made the test green.
ab867fb
Takashi Matsuo
Added encrypted service account json file.
2b2425d
@tmatsuo
tmatsuo force-pushed the tox branch from 0d10e5e to 2b2425d Compare May 8, 2015 21:19
@tmatsuo

tmatsuo commented May 8, 2015

Copy link
Copy Markdown
Contributor Author

Ok, the tests are all green when run locally.
Let's see if the travis build suceeds.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@elibixby

elibixby commented May 8, 2015

Copy link
Copy Markdown
Contributor

Might have to wait until after the weekend... =/ Travis builds have been super slow to start lately.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Takashi Matsuo added 3 commits May 8, 2015 21:32
Takashi Matsuo
Update .travis.yml
a368e68
Takashi Matsuo
Fixed the wrong PYTHONPATH
23c14d0
Takashi Matsuo
Install gae-python in travis.yml
ac005e7
@coveralls

coveralls commented May 9, 2015

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling ac005e7 on tox into * on master*.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 9, 2015

Copy link
Copy Markdown
Contributor Author

All green :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 11, 2015

Copy link
Copy Markdown
Contributor Author

@elibixby
I addressed all of your comments, and tests are all green now.
Can I merge this now?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@elibixby

elibixby commented May 14, 2015

Copy link
Copy Markdown
Contributor

Sorry! Was on vacation! LGTM, merge away.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 14, 2015

Copy link
Copy Markdown
Contributor Author

No worries. Thanks for looking!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tmatsuo pushed a commit that referenced this pull request May 14, 2015
Takashi Matsuo
Merge pull request #6 from GoogleCloudPlatform/tox
32fd8ba
Added tox config with flake8 and nosetests.
@tmatsuo
tmatsuo merged commit 32fd8ba into master May 14, 2015
@tmatsuo
tmatsuo deleted the tox branch May 14, 2015 17:11
@ToryHwang ToryHwang mentioned this pull request Jan 26, 2017
Streaming too fast from Streaming API sample code (unmodified) #742
Closed
dvioreltx pushed a commit to dvioreltx/python-docs-samples that referenced this pull request May 27, 2020
@dviorel
Works with the issue GoogleCloudPlatform#6
a204488
gcf-merge-on-green Bot pushed a commit that referenced this pull request Apr 20, 2022
@glasnt
Reassert idp-sql and django tests (#7779)
fde487c
## Description

#7342 introduced a change where nox would check for `test_*.py` and `*_test.py` files. Django and IDP-SQL had their tests in `test/`, so this glob didn't find these files, and these tests haven't been run for a bit. 



Outstanding issues with these tests: 

*dynamic PR status update follows*

---


 * Django: Postgres 9.6 EOL

```
Step #6 - "Migrate database": django.db.utils.ProgrammingError: column c.relispartition does not exist
Step #6 - "Migrate database": LINE 3:             CASE WHEN c.relispartition THEN 'p' WHEN c.relki...
Step #6 - "Migrate database": 
```

Debugging seems to indicate this happens on old versions of postgres. [Django 4.0 no longer supports Postgres 9.6](https://docs.djangoproject.com/en/4.0/releases/4.0/#dropped-support-for-postgresql-9-6). `test-instance-pg` is Postgres 9.6, which is EOL as of November 2021. 

Suggest creating a newer versioned instance of a postgres testing database (happy to help here where I can).

Update: test-instance-pg has been updated to Postgres 14

---

* IDP: Linting issues

```
./middleware.py:31:29: ANN401 Dynamically typed expressions (typing.Any) are disallowed
    def decorated_function(*args: Any, **kwargs: Any) -> Any:
                            ^
./middleware.py:31:42: ANN401 Dynamically typed expressions (typing.Any) are disallowed
    def decorated_function(*args: Any, **kwargs: Any) -> Any:
                                         ^
./middleware.py:31:61: ANN401 Dynamically typed expressions (typing.Any) are disallowed
    def decorated_function(*args: Any, **kwargs: Any) -> Any:
                                                            ^
```

This is being addressed as of v2.9.0 of flake8-annotations. sco1/flake8-annotations#136 

It will require adding `--allow-star-arg-any` to the flake8 call. 

Update: while this flag could be used, I opted to use the `TypeVar` method in #7789

---

## Checklist
- [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md)
- [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file)
- [ ] **Tests** pass:   `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones)
- [ ] Please **merge** this PR for me once it is approved.
- [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/CODEOWNERS) with the codeowners for this sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@elibixby elibixby

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@tmatsuo @elibixby @coveralls
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.