8000 chore: Code refactoring to follow common Google API scheme by mf2199 · Pull Request #482 · googleapis/python-spanner-django · GitHub
[go: up one dir, main page]

Skip to content

chore: Code refactoring to follow common Google API scheme #482

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

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
11222db
feat: release 2.2a0 (#457)
larkee May 26, 2020
5551b58
feat: [WIP] The first stage of `nox` implementation (#468)
mf2199 Aug 25, 2020
bfde221
feat: refactor connect() function, cover it with unit tests (#462)
Aug 27, 2020
e017901
feat: Stage 2 of `nox` implementation - adding `docs` target (#473)
mf2199 Aug 29, 2020
144bdc2
fix: Fix black, isort compatibility (#469)
c24t Aug 31, 2020
7a1f6a6
feat: Stage 3-4 of `nox` implementation - adding auto-format targets …
mf2199 Aug 31, 2020
acd9209
feat: Stage 5 of `nox` implementation - adding coverage targets (#479)
mf2199 Aug 31, 2020
6028f88
feat: cursor must detect if the parent connection is closed (#463)
Sep 1, 2020
f51960b
chore: folder `django_spanner` renamed to `spanner_django`
mf2199 Sep 7, 2020
c28122f
chore: `spanner_django` moved to `google/cloud/`
mf2199 Sep 7, 2020
635e610
fix: links in `noxfile.py`
mf2199 Sep 7, 2020
f920c8d
chore: folder `spanner_dbapi` moved to `google/cloud/`
mf2199 Sep 7, 2020
1cb4712
chore: fixed references + cleanup
mf2199 Sep 7, 2020
604aa5b
chore: fixed names
mf2199 Sep 7, 2020
f33af8a
fix: possible fix to kokoro `ModuleNotFoundError`
mf2199 Sep 8, 2020
9e5fec8
fix: possible fix to kokoro `ModuleNotFoundError`
mf2199 Sep 8, 2020
78db0e5
experimental: tryout fix
mf2199 Sep 8, 2020
fbe3090
fix: updated package name
mf2199 Sep 8, 2020
899cb44
fix: updated distribution name
mf2199 Sep 8, 2020
eec19b7
chore: lint format
mf2199 Sep 8, 2020
94ba284
feat: Stage 6 of `nox` implementation - enabling system tests (#480)
mf2199 Sep 8, 2020
4ef63ad
Merge branch 'master' into refactor
c24t Sep 8, 2020
4ebf04e
fix: updated names in docs
mf2199 Sep 8, 2020
620830a
s/sjango/django/
c24t Sep 10, 2020
10f2acb
Revert distribution name change
c24t Sep 10, 2020
c77e908
Lint
c24t Sep 10, 2020
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
23 changes: 23 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd

[run]
branch = True

[report]
fail_under = 100
show_missing = True
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore abstract methods
raise NotImplementedError
omit =
*/site-packages/*.py
27 changes: 22 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
*.egg-info
*.py[co]
build/
*.py[cod]
*.sw[op]
.tox/

# Packages
*.egg
*.egg-info
dist
build
eggs
.eggs
bin
MANIFEST
dist/
django_tests
__pycache__

# Unit test / coverage reports
.coverage
.nox
.pytest_cache

# JetBrains
.idea

# Built documentation
docs/_build
19 changes: 13 additions & 6 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
# Setup project id.
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")

# Install tox
python3.6 -m pip install --upgrade --quiet tox flake8 isort
python3.6 -m tox --version
# Remove old nox
python3.6 -m pip uninstall --yes --quiet nox-automation

python3.6 -m tox
python3.6 -m isort --recursive --check-only --diff
python3.6 -m flake8
# Install nox
python3.6 -m pip install --upgrade --quiet nox
python3.6 -m nox --version

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
python3.6 -m nox -s "${NOX_SESSION:-}"
else
python3.6 -m nox
fi

# Export essential environment variables for Django tests.
export RUNNING_SPANNER_BACKEND_TESTS=1
Expand Down
203 changes: 0 additions & 203 deletions README.md

This file was deleted.

Loading
0