Skip to content

Commit

Permalink
Fix CI | Update black version in pre-commit (#137)
Browse files Browse the repository at this point in the history
* Update black

This fixes pallets/click#2225

* Update black and python version
Python version is updated to satisfy black constraint

The current project's Python requirement (>=3.6,<4.0) is not compatible with some of the required packages Python requirement:
    - black requires Python >=3.6.2, so it will not be satisfied for Python >=3.6,<3.6.2

* Reformat files with black 22.3.0

* Remove black from pyproject.toml

Co-authored-by: Branch Vincent <branchevincent@gmail.com>

* Revert updating python version

Co-authored-by: Branch Vincent <branchevincent@gmail.com>
  • Loading branch information
Bobronium and branchvincent authored May 27, 2022
1 parent 8c3ba58 commit e103e1c
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 311 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
13 changes: 6 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
master_doc = "index"

# General information about the project.
project = u"Cleo"
copyright = u"2014, Sébastien Eustace"
project = "Cleo"
copyright = "2014, Sébastien Eustace"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -195,7 +195,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
("index", "Cleo.tex", u"Cleo Documentation", u"Sébastien Eustace", "manual")
("index", "Cleo.tex", "Cleo Documentation", "Sébastien Eustace", "manual")
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -223,7 +223,7 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [("index", "cleo", u"Cleo Documentation", [u"Sébastien Eustace"], 1)]
man_pages = [("index", "cleo", "Cleo Documentation", ["Sébastien Eustace"], 1)]

# If true, show URL addresses after external links.
# man_show_urls = False
Expand All @@ -238,8 +238,8 @@
(
"index",
"Cleo",
u"Cleo Documentation",
u"Sébastien Eustace",
"Cleo Documentation",
"Sébastien Eustace",
"Cleo",
"One line description of project.",
"Miscellaneous",
Expand Down Expand Up @@ -267,7 +267,6 @@
def setup(app):
app.add_stylesheet("theme_overrides.css")


else:
html_context = {
"css_files": [
Expand Down
Loading

0 comments on commit e103e1c

Please sign in to comment.