Skip to content

Commit

Permalink
Mise à jour de Black (#6161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen authored Sep 12, 2021
1 parent 8bf1f2f commit fe854d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
PYTHON_VERSION: "3.7"
MARIADB_VERSION: "10.4.10"
COVERALLS_VERSION: "2.2.0"
BLACK_VERSION: "21.4b1"
BLACK_VERSION: "21.8b0" # needs to be also updated in requirements-dev.txt and .pre-commit-config.yaml

# As GitHub Action does not allow environment variables
# to be used in services definitions, these are only for
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.8b0 # needs to be also updated in requirements-dev.txt and .github/workflows/ci.yml
hooks:
- id: black
language_version: python3
14 changes: 3 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
[tool.black]
line-length = 120
exclude = '''
(
/(
node_modules
| \.venv
| build
| dist
| doc
)/
)
'''
extend-exclude = """
^/doc
"""
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements.txt

black==21.4b1 # penser à mettre à jour aussi .github/workflows/ci.yml
black==21.8b0 # needs to be also updated in .github/workflows/ci.yml and .pre-commit-config.yaml
colorlog==6.4.1
django-debug-toolbar==3.2.2
django-extensions==3.1.3
Expand Down

0 comments on commit fe854d9

Please sign in to comment.