Skip to content

Commit

Permalink
Update black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanFeenstra committed Feb 21, 2024
1 parent b8b2541 commit 01d5a52
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.11"
- uses: isort/isort-action@v0.1.0
with:
configuration: "--profile black --line-length 125 --skip-glob LOOT-Warning-Checker/lib/*"
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/CheckerPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
from typing import Dict, Final, List, Optional

Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/Games.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import NamedTuple

from .tools.LOOT import LOOTGame
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/TogglePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from typing import List, Optional

import mobase
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import site
from typing import List
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/LOOT/Conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
=============================================================================
"""

import operator
import os
import re
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/LOOT/Masterlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import re
from typing import Any, Dict, Final, Generator, List, NamedTuple, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/LOOT/Plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
from zlib import crc32

Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/LOOT/Warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import re
from abc import ABC
from typing import Dict, List, Union
Expand Down
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/LOOT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from .Masterlist import LOOTGame, LOOTMasterlistLoader, downloadMasterlist, getMasterlistPath
from .Warnings import DirtyPluginWarning, IncompatibilityWarning, LOOTWarning, MessageWarning, MissingRequirementWarning
1 change: 1 addition & 0 deletions LOOT-Warning-Checker/tools/xEdit.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import os
import re
import winreg
Expand Down
4 changes: 2 additions & 2 deletions pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
rev: 24.2.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--line-length", "125", "--skip-glob", "LOOT-Warning-Checker/lib/*"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 125
target-version = ["py38"]
target-version = ["py311"]
exclude = "/LOOT-Warning-Checker/lib/"

[tool.isort]
Expand Down

0 comments on commit 01d5a52

Please sign in to comment.