diff --git a/pyproject.toml b/pyproject.toml index ca608f37..66a0730b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,10 +83,10 @@ dynamic = [ dependencies = [ "backports.zoneinfo<1; python_version<'3.9'", "crate>=2,<3", - "geojson<4,>=2.5", + "geojson>=2.5,<4", "importlib-metadata; python_version<'3.8'", "importlib-resources; python_version<'3.9'", - "sqlalchemy<2.1,>=1", + "sqlalchemy>=1,<2.1", "verlib2<0.4", ] optional-dependencies.all = [ @@ -109,7 +109,7 @@ optional-dependencies.release = [ ] optional-dependencies.test = [ "cratedb-toolkit[testing]", - "dask[dataframe]; python_version<'3.13'", + "dask[dataframe]", "pandas<2.3", "pueblo>=0.0.7", "pytest<9", diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 79c80a4c..00000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[flake8] -ignore = E501, C901, W503, W504 diff --git a/src/sqlalchemy_cratedb/compat/core14.py b/src/sqlalchemy_cratedb/compat/core14.py index 89a8222e..15377f43 100644 --- a/src/sqlalchemy_cratedb/compat/core14.py +++ b/src/sqlalchemy_cratedb/compat/core14.py @@ -317,11 +317,7 @@ def _get_crud_params(compiler, stmt, compile_state, **kw): _column_as_key, kw, ) - elif ( - not values - and compiler.for_executemany # noqa: W503 - and compiler.dialect.supports_default_metavalue # noqa: W503 - ): + elif not values and compiler.for_executemany and compiler.dialect.supports_default_metavalue: # convert an "INSERT DEFAULT VALUES" # into INSERT (firstcol) VALUES (DEFAULT) which can be turned # into an in-place multi values. This supports