Skip to content

Commit 921040e

Browse files
committed
Chore: Reformat whole codebase with Black formatter
1 parent 35c2373 commit 921040e

35 files changed

Lines changed: 4226 additions & 2540 deletions

.github/workflows/python-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
run: |
3030
python -m pip install --upgrade pip
3131
python -m pip install -r requirements_dev.txt
32+
33+
- name: Check code formatting with Black
34+
run: |
35+
black --check .
3236
3337
- name: Build and install kiutils on Windows
3438
if: matrix.os == 'windows-latest'

docs/conf.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,49 @@
1212
#
1313
import os
1414
import sys
15-
sys.path.insert(0, os.path.abspath('../src'))
15+
16+
sys.path.insert(0, os.path.abspath("../src"))
1617

1718

1819
# -- Project information -----------------------------------------------------
1920

20-
project = 'kiutils'
21-
copyright = '2023, Marvin Mager'
22-
author = 'Marvin Mager'
21+
project = "kiutils"
22+
copyright = "2023, Marvin Mager"
23+
author = "Marvin Mager"
2324

2425

2526
# -- General configuration ---------------------------------------------------
2627

2728
# Add any Sphinx extension module names here, as strings. They can be
2829
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2930
# ones.
30-
extensions = [
31-
'sphinx.ext.autodoc'
32-
]
31+
extensions = ["sphinx.ext.autodoc"]
3332

3433
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
34+
templates_path = ["_templates"]
3635

3736
# List of patterns, relative to source directory, that match files and
3837
# directories to ignore when looking for source files.
3938
# This pattern also affects html_static_path and html_extra_path.
40-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
39+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
4140

4241
# Sort the documented members as they appear in the source
43-
autodoc_member_order = 'bysource'
42+
autodoc_member_order = "bysource"
4443

4544

4645
# -- Options for HTML output -------------------------------------------------
4746

4847
# The theme to use for HTML and HTML Help pages. See the documentation for
4948
# a list of builtin themes.
5049
#
51-
html_theme = 'sphinx_rtd_theme'
50+
html_theme = "sphinx_rtd_theme"
5251

5352
# Add any paths that contain custom static files (such as style sheets) here,
5453
# relative to this directory. They are copied after the builtin static files,
5554
# so a file named "default.css" will overwrite the builtin "default.css".
56-
html_static_path = ['_static']
55+
html_static_path = ["_static"]
5756

5857
# Options of RTD theme
5958
html_theme_options = {
60-
'style_external_links': True,
59+
"style_external_links": True,
6160
}

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ jinja2
22
setuptools
33
sphinx
44
sphinx-rtd-theme
5-
build
5+
build
6+
black

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
from setuptools import setup
1111

12-
if __name__ == '__main__':
12+
if __name__ == "__main__":
1313
setup()

src/kiutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
GPL-3.0
88
"""
99

10-
# Intentionally left blank ..
10+
# Intentionally left blank ..

0 commit comments

Comments
 (0)