Update Black dependency to fix CI lint (#900)

* Update Black dependency to fix CI lint

Closes #896.

Black 22.3.0 fixes incompatibility with Click 8.1.0:
https://github.com/psf/black/pull/2966

This currently causes the CI to fail, e.g. https://github.com/typeddjango/django-stubs/runs/5756075543

* Reformat with Black v22
This commit is contained in:
Marti Raudsepp
2022-03-31 11:29:31 +03:00
committed by GitHub
parent 92e5f202ac
commit 212ef40c3d
6 changed files with 9 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ repos:
types: [pyi]
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8

View File

@@ -7,6 +7,7 @@ class OracleGeometryColumns(models.Model):
table_name: Any = ...
column_name: Any = ...
srid: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...
@@ -23,6 +24,7 @@ class OracleSpatialRefSys(models.Model, SpatialRefSysMixin):
auth_name: Any = ...
wktext: Any = ...
cs_bounds: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...

View File

@@ -11,6 +11,7 @@ class PostGISGeometryColumns(models.Model):
coord_dimension: Any = ...
srid: Any = ...
type: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...
@@ -26,6 +27,7 @@ class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
auth_srid: Any = ...
srtext: Any = ...
proj4text: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...

View File

@@ -10,6 +10,7 @@ class SpatialiteGeometryColumns(models.Model):
srid: Any = ...
spatial_index_enabled: Any = ...
type: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...
@@ -26,6 +27,7 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
ref_sys_name: Any = ...
proj4text: Any = ...
srtext: Any = ...
class Meta:
app_label: str = ...
db_table: str = ...

View File

@@ -21,6 +21,7 @@ class BaseGeometryWidget(Widget):
class OpenLayersWidget(BaseGeometryWidget):
template_name: str = ...
map_srid: int = ...
class Media:
css: Any = ...
js: Any = ...

View File

@@ -1,4 +1,4 @@
black==22.1.0
black==22.3.0
requests==2.27.1
coreapi==2.3.3
gitpython==3.1.27