Skip to content

Commit

Permalink
Update Black dependency to fix CI lint (#900)
Browse files Browse the repository at this point in the history
* Update Black dependency to fix CI lint

Closes #896.

Black 22.3.0 fixes incompatibility with Click 8.1.0:
psf/black#2966

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

* Reformat with Black v22
  • Loading branch information
intgr committed Mar 31, 2022
1 parent 92e5f20 commit 212ef40
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions django-stubs/contrib/gis/db/backends/oracle/models.pyi
Expand Up @@ -7,6 +7,7 @@ class OracleGeometryColumns(models.Model):
table_name: Any = ...
column_name: Any = ...
srid: Any = ...

class Meta:
app_label: str = ...
db_table: str = ...
Expand All @@ -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 = ...
Expand Down
2 changes: 2 additions & 0 deletions django-stubs/contrib/gis/db/backends/postgis/models.pyi
Expand Up @@ -11,6 +11,7 @@ class PostGISGeometryColumns(models.Model):
coord_dimension: Any = ...
srid: Any = ...
type: Any = ...

class Meta:
app_label: str = ...
db_table: str = ...
Expand All @@ -26,6 +27,7 @@ class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
auth_srid: Any = ...
srtext: Any = ...
proj4text: Any = ...

class Meta:
app_label: str = ...
db_table: str = ...
Expand Down
2 changes: 2 additions & 0 deletions django-stubs/contrib/gis/db/backends/spatialite/models.pyi
Expand Up @@ -10,6 +10,7 @@ class SpatialiteGeometryColumns(models.Model):
srid: Any = ...
spatial_index_enabled: Any = ...
type: Any = ...

class Meta:
app_label: str = ...
db_table: str = ...
Expand All @@ -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 = ...
Expand Down
1 change: 1 addition & 0 deletions django-stubs/contrib/gis/forms/widgets.pyi
Expand Up @@ -21,6 +21,7 @@ class BaseGeometryWidget(Widget):
class OpenLayersWidget(BaseGeometryWidget):
template_name: str = ...
map_srid: int = ...

class Media:
css: Any = ...
js: Any = ...
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
black==22.1.0
black==22.3.0
requests==2.27.1
coreapi==2.3.3
gitpython==3.1.27
Expand Down

0 comments on commit 212ef40

Please sign in to comment.