mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-01-25 20:36:45 +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]
|
||||
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
|
||||
|
||||
@@ -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 = ...
|
||||
|
||||
@@ -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 = ...
|
||||
|
||||
@@ -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 = ...
|
||||
|
||||
@@ -21,6 +21,7 @@ class BaseGeometryWidget(Widget):
|
||||
class OpenLayersWidget(BaseGeometryWidget):
|
||||
template_name: str = ...
|
||||
map_srid: int = ...
|
||||
|
||||
class Media:
|
||||
css: Any = ...
|
||||
js: Any = ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
black==22.1.0
|
||||
black==22.3.0
|
||||
requests==2.27.1
|
||||
coreapi==2.3.3
|
||||
gitpython==3.1.27
|
||||
|
||||
Reference in New Issue
Block a user