mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-12 19:06:58 +08:00
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:
@@ -28,7 +28,7 @@ repos:
|
|||||||
types: [pyi]
|
types: [pyi]
|
||||||
args: ["--profile", "black"]
|
args: ["--profile", "black"]
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.12b0
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class OracleGeometryColumns(models.Model):
|
|||||||
table_name: Any = ...
|
table_name: Any = ...
|
||||||
column_name: Any = ...
|
column_name: Any = ...
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
@@ -23,6 +24,7 @@ class OracleSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
auth_name: Any = ...
|
auth_name: Any = ...
|
||||||
wktext: Any = ...
|
wktext: Any = ...
|
||||||
cs_bounds: Any = ...
|
cs_bounds: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ class PostGISGeometryColumns(models.Model):
|
|||||||
coord_dimension: Any = ...
|
coord_dimension: Any = ...
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
type: Any = ...
|
type: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
@@ -26,6 +27,7 @@ class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
auth_srid: Any = ...
|
auth_srid: Any = ...
|
||||||
srtext: Any = ...
|
srtext: Any = ...
|
||||||
proj4text: Any = ...
|
proj4text: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ class SpatialiteGeometryColumns(models.Model):
|
|||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
spatial_index_enabled: Any = ...
|
spatial_index_enabled: Any = ...
|
||||||
type: Any = ...
|
type: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
@@ -26,6 +27,7 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
ref_sys_name: Any = ...
|
ref_sys_name: Any = ...
|
||||||
proj4text: Any = ...
|
proj4text: Any = ...
|
||||||
srtext: Any = ...
|
srtext: Any = ...
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label: str = ...
|
app_label: str = ...
|
||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class BaseGeometryWidget(Widget):
|
|||||||
class OpenLayersWidget(BaseGeometryWidget):
|
class OpenLayersWidget(BaseGeometryWidget):
|
||||||
template_name: str = ...
|
template_name: str = ...
|
||||||
map_srid: int = ...
|
map_srid: int = ...
|
||||||
|
|
||||||
class Media:
|
class Media:
|
||||||
css: Any = ...
|
css: Any = ...
|
||||||
js: Any = ...
|
js: Any = ...
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
black==22.1.0
|
black==22.3.0
|
||||||
requests==2.27.1
|
requests==2.27.1
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
gitpython==3.1.27
|
gitpython==3.1.27
|
||||||
|
|||||||
Reference in New Issue
Block a user