-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to latest version of pyairtable (fix for issue #1)
- Loading branch information
Showing
6 changed files
with
48 additions
and
61 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 |
---|---|---|
|
@@ -10,9 +10,7 @@ readme = "README.md" | |
requires-python = ">=3.7" | ||
license = "MIT" | ||
keywords = [] | ||
authors = [ | ||
{ name = "David Kane", email = "[email protected]" }, | ||
] | ||
authors = [{ name = "David Kane", email = "[email protected]" }] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
|
@@ -26,7 +24,7 @@ classifiers = [ | |
] | ||
dependencies = [ | ||
"click", | ||
"pyairtable", | ||
"pyairtable==2.2.*", | ||
"python-dotenv", | ||
"diskcache", | ||
"sqlite-utils", | ||
|
@@ -45,27 +43,13 @@ airtable-to-sqlite = "airtable_to_sqlite.cli:airtable_to_sqlite" | |
path = "src/airtable_to_sqlite/__about__.py" | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"coverage[toml]>=6.5", | ||
"pytest", | ||
"pytest-mock", | ||
] | ||
dependencies = ["coverage[toml]>=6.5", "pytest", "pytest-mock"] | ||
[tool.hatch.envs.default.scripts] | ||
test = "pytest {args:tests}" | ||
test-cov = "coverage run -m pytest {args:tests}" | ||
cov-report = [ | ||
"- coverage combine", | ||
"coverage report", | ||
] | ||
cov = [ | ||
"test-cov", | ||
"cov-report", | ||
] | ||
cov-fail = [ | ||
"test-cov", | ||
"- coverage combine", | ||
"coverage report --fail-under=95", | ||
] | ||
cov-report = ["- coverage combine", "coverage report"] | ||
cov = ["test-cov", "cov-report"] | ||
cov-fail = ["test-cov", "- coverage combine", "coverage report --fail-under=95"] | ||
cov-html = [ | ||
"test-cov", | ||
"- coverage combine", | ||
|
@@ -79,26 +63,12 @@ python = ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
|
||
[tool.hatch.envs.lint] | ||
detached = true | ||
dependencies = [ | ||
"black>=23.1.0", | ||
"mypy>=1.0.0", | ||
"ruff>=0.0.243", | ||
] | ||
dependencies = ["mypy>=1.0.0", "ruff>=0.1.11"] | ||
[tool.hatch.envs.lint.scripts] | ||
typing = "mypy --install-types --non-interactive {args:src/airtable_to_sqlite tests}" | ||
style = [ | ||
"ruff {args:.}", | ||
"black --check --diff {args:.}", | ||
] | ||
fmt = [ | ||
"black {args:.}", | ||
"ruff --fix {args:.}", | ||
"style", | ||
] | ||
all = [ | ||
"style", | ||
"typing", | ||
] | ||
style = ["ruff {args:.}", "ruff format --check --diff {args:.}"] | ||
fmt = ["ruff format {args:.}", "ruff --fix {args:.}", "style"] | ||
all = ["style", "typing"] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
|
@@ -144,9 +114,16 @@ ignore = [ | |
# Allow boolean positional values in function calls, like `dict.get(... True)` | ||
"FBT003", | ||
# Ignore checks for possible passwords | ||
"S105", "S106", "S107", | ||
"S105", | ||
"S106", | ||
"S107", | ||
# Ignore complexity | ||
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915", | ||
"C901", | ||
"PLR0911", | ||
"PLR0912", | ||
"PLR0913", | ||
"PLR0915", | ||
"ISC001", | ||
] | ||
unfixable = [ | ||
# Don't touch unused imports | ||
|
@@ -167,17 +144,14 @@ ban-relative-imports = "all" | |
source_pkgs = ["airtable_to_sqlite", "tests"] | ||
branch = true | ||
parallel = true | ||
omit = [ | ||
"src/airtable_to_sqlite/__about__.py", | ||
] | ||
omit = ["src/airtable_to_sqlite/__about__.py"] | ||
|
||
[tool.coverage.paths] | ||
airtable_to_sqlite = ["src/airtable_to_sqlite", "*/airtable-to-sqlite/src/airtable_to_sqlite"] | ||
airtable_to_sqlite = [ | ||
"src/airtable_to_sqlite", | ||
"*/airtable-to-sqlite/src/airtable_to_sqlite", | ||
] | ||
tests = ["tests", "*/airtable-to-sqlite/tests"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"no cov", | ||
"if __name__ == .__main__.:", | ||
"if TYPE_CHECKING:", | ||
] | ||
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] |
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,4 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2023-present David Kane <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
__version__ = "0.1.0" | ||
__version__ = "0.2.0" |
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