Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
chore: update global workflows (#507)
Browse files Browse the repository at this point in the history
Co-authored-by: ReenigneArcher <[email protected]>
  • Loading branch information
LizardByte-bot and ReenigneArcher authored Aug 29, 2024
1 parent 3578d21 commit 320ffc0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[flake8]
filename =
*.py,
*.pys
*.py
max-line-length = 120
extend-exclude =
venv/
32 changes: 28 additions & 4 deletions .github/workflows/python-flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,37 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5 # https://github.com/actions/setup-python
with:
python-version: '3.10'
python-version: '3.12'

- name: Install dependencies
run: |
# pin flake8 before v6.0.0 due to removal of support for type comments (required for Python 2.7 type hints)
python -m pip install --upgrade pip setuptools "flake8<6"
python -m pip install --upgrade \
pip \
setuptools \
wheel \
flake8 \
nb-clean \
nbqa[toolchain]
- name: Test with flake8
run: |
python -m flake8 --verbose
python -m flake8 \
--color=always \
--verbose
- name: Test with nbqa
run: |
python -m nbqa flake8 \
--color=always \
--verbose \
.
- name: Test with nb-clean
run: |
output=$(find . -name '*.ipynb' -exec nb-clean check {} \;)
# fail if there are any issues
if [ -n "$output" ]; then
echo "$output"
exit 1
fi
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_jellyfin_version(file_path: str):

# -- Project information -----------------------------------------------------
project = 'Themerr-jellyfin'
project_copyright = f'{datetime.now ().year}, {project}'
project_copyright = f'{datetime.now().year}, {project}'
author = 'ReenigneArcher'

csproj_file = os.path.join(root_dir, 'Jellyfin.Plugin.Themerr', 'Jellyfin.Plugin.Themerr.csproj')
Expand Down

0 comments on commit 320ffc0

Please sign in to comment.