-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1be666
commit 28c9693
Showing
8 changed files
with
1,006 additions
and
1,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "12:00" | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
labels: [deps] | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -32,7 +32,7 @@ jobs: | |
- uses: isbang/[email protected] | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4.6.0 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
@@ -42,17 +42,20 @@ jobs: | |
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
pipx install poetry | ||
poetry --version | ||
- name: Install Tox | ||
run: | | ||
pipx install tox | ||
tox --version | ||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- name: Run pytest | ||
run: | | ||
poetry run pytest | ||
# - name: Run pytest | ||
# run: | | ||
# poetry run pytest | ||
- name: Run lint | ||
run: | | ||
poetry run tox -e lint | ||
tox -e typing | ||
# To test mysql client 1. docker exec -it 012c /bin/bash (ssh server) 2. apk add mysql mysql-client 3. mysql -h 10.5.0.5 -P 3306 -u root -ppassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ci: | ||
autofix_prs: false | ||
autoupdate_schedule: weekly | ||
autoupdate_commit_msg: 'chore: pre-commit autoupdate' | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.2.0 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,15 @@ | ||
# This file can be used to customize tox tests as well as other test frameworks like flake8 and mypy | ||
|
||
[tox] | ||
envlist = py39 | ||
; envlist = py37, py38, py39 | ||
isolated_build = true | ||
envlist = py38,py39,py310,py311,py312 | ||
|
||
[testenv] | ||
whitelist_externals = poetry | ||
|
||
commands = | ||
poetry install -v | ||
poetry run pytest | ||
poetry run black --check tap_mysql | ||
poetry run flake8 tap_mysql | ||
|
||
[testenv:pytest] | ||
# Run the python tests. | ||
# To execute, run `tox -e pytest` | ||
envlist = py37, py38, py39 | ||
allowlist_externals = poetry | ||
commands = | ||
poetry install -v | ||
poetry run pytest | ||
|
||
[testenv:format] | ||
# Attempt to auto-resolve lint errors before they are raised. | ||
# To execute, run `tox -e format` | ||
[testenv:typing] | ||
commands = | ||
poetry install -v | ||
poetry run black tap_mysql | ||
poetry run isort tap_mysql | ||
|
||
[testenv:lint] | ||
# Raise an error if lint and style standards are not met. | ||
# To execute, run `tox -e lint` | ||
commands = | ||
poetry install -v | ||
poetry run black --check --diff tap_mysql/ | ||
poetry run isort --check tap_mysql | ||
poetry run flake8 tap_mysql | ||
|
||
[flake8] | ||
ignore = W503 | ||
max-line-length = 88 | ||
max-complexity = 10 | ||
|
||
[pydocstyle] | ||
ignore = D105,D203,D213 | ||
poetry install -v --with typing | ||
poetry run mypy tap_mysql |