Skip to content

Commit 01dc623

Browse files
authored
Data Type Bug Fixes (#99)
* Numerous fixes * Fix unit tests * Update version
1 parent 8fba45f commit 01dc623

12 files changed

Lines changed: 477 additions & 269 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ lib64/
2323
parts/
2424
sdist/
2525
var/
26+
venv/
2627
*.egg-info/
2728
.installed.cfg
2829
*.egg
@@ -94,3 +95,4 @@ ENV/
9495

9596
# Python IDE
9697
.idea/
98+
/token.txt

‎.pylintrc‎

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
[MAIN]
2+
# Analyse import fallback blocks
3+
analyse-fallback-blocks=no
4+
5+
# Load and enable all available extensions
6+
load-plugins=pylint.extensions.docparams
7+
8+
# Files or directories to ignore
9+
ignore=CVS,.git,__pycache__,build,dist,*.egg-info
10+
11+
# Python version
12+
py-version=3.10
13+
14+
# Jobs to run in parallel (0 = auto-detect)
15+
jobs=0
16+
17+
[MESSAGES CONTROL]
18+
# Disable specific messages
19+
disable=
20+
C0114, # missing-module-docstring
21+
C0115, # missing-class-docstring
22+
C0116, # missing-function-docstring
23+
C0301, # line-too-long (handled by formatter)
24+
C0103, # invalid-name (allow single letter variables, non-standard names)
25+
R0801, # duplicate-code
26+
R0903, # too-few-public-methods
27+
R0913, # too-many-arguments
28+
R0914, # too-many-locals
29+
R0915, # too-many-statements
30+
R0902, # too-many-instance-attributes
31+
R0904, # too-many-public-methods
32+
R0912, # too-many-branches
33+
W0212, # protected-access (common in SQLAlchemy dialects)
34+
W0223, # abstract-method (SQLAlchemy dialect methods)
35+
W0613, # unused-argument (required by interface)
36+
W0703, # broad-except
37+
W1203, # logging-fstring-interpolation
38+
E1101, # no-member (false positives with dynamic attributes)
39+
40+
[FORMAT]
41+
# Maximum line length
42+
max-line-length=120
43+
44+
# Expected indentation
45+
indent-string=' '
46+
47+
[BASIC]
48+
# Good variable names
49+
good-names=i,j,k,v,f,ex,db,q,kw,fn,id,pk,fk
50+
51+
# Naming style
52+
function-naming-style=snake_case
53+
variable-naming-style=snake_case
54+
class-naming-style=PascalCase
55+
const-naming-style=UPPER_CASE
56+
module-naming-style=snake_case
57+
58+
[DESIGN]
59+
# Maximum number of arguments for function / method
60+
max-args=10
61+
62+
# Maximum number of locals for function / method body
63+
max-locals=20
64+
65+
# Maximum number of return / yield for function / method body
66+
max-returns=6
67+
68+
# Maximum number of branch for function / method body
69+
max-branches=15
70+
71+
# Maximum number of statements in function / method body
72+
max-statements=60
73+
74+
# Maximum number of attributes for a class
75+
max-attributes=15
76+
77+
[IMPORTS]
78+
# Allow wildcard imports from these modules
79+
allow-wildcard-with-all=no
80+
81+
# Deprecated modules
82+
deprecated-modules=optparse
83+
84+
[LOGGING]
85+
# Logging format style
86+
logging-format-style=new
87+
88+
[TYPECHECK]
89+
# List of members which are set dynamically
90+
generated-members=
91+
sqlalchemy.*,
92+
types.*
93+
94+
# Ignore missing members for these classes
95+
ignored-classes=
96+
SQLObject,
97+
optparse.Values,
98+
thread._local,
99+
_thread._local
100+
101+
[SIMILARITIES]
102+
# Minimum lines number of a similarity
103+
min-similarity-lines=6
104+
105+
# Ignore comments when computing similarities
106+
ignore-comments=yes
107+
108+
# Ignore docstrings when computing similarities
109+
ignore-docstrings=yes
110+
111+
# Ignore imports when computing similarities
112+
ignore-imports=yes
113+
114+
# Allow DB-API 2.0 required function names
115+
function-rgx=[a-z_][a-z0-9_]{2,30}$|^(Date|Time|Timestamp|DateFromTicks|TimeFromTicks|TimestampFromTicks|Binary)$

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
long_description = f.read()
3030

3131
setup(name='sqlalchemy_drill',
32-
version='1.1.9',
32+
version='1.1.10',
3333
description="Apache Drill for SQLAlchemy",
3434
long_description=long_description,
3535
long_description_content_type="text/markdown",
@@ -64,7 +64,7 @@
6464
license='MIT',
6565
url='https://github.com/JohnOmernik/sqlalchemy-drill',
6666
download_url='https://github.com/JohnOmernik/sqlalchemy-drill/archive/'
67-
'1.1.9.tar.gz',
67+
'1.1.10.tar.gz',
6868
packages=find_packages(),
6969
include_package_data=True,
7070
tests_require=['nose >= 0.11'],

‎sqlalchemy_drill/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2020
# DEALINGS IN THE SOFTWARE.
2121

22-
__version__ = '1.1.9'
22+
__version__ = '1.1.10'
2323
from sqlalchemy.dialects import registry
2424

2525
registry.register("drill", "sqlalchemy_drill.sadrill", "DrillDialect_sadrill")

0 commit comments

Comments
 (0)