Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
exclude: "docs|node_modules|migrations|.git|.tox"
default_stages: [commit]
default_stages: [pre-commit]
fail_fast: true

# make sure these always match dev.yml and qa in pyproject.toml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -14,13 +14,13 @@ repos:

# Can run individually with `pre-commit run black --all-files`
- repo: https://github.com/psf/black
rev: 25.1.0
rev: 26.5.1
hooks:
- id: black

# Can run individually with `pre-commit run isort --all-files`
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
rev: 9.0.0b2
hooks:
- id: isort

Expand All @@ -36,7 +36,7 @@ repos:

# Can run individually with `pre-commit run mypy --all-files`
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
rev: v2.3.0
hooks:
- id: mypy
args: ["--config-file=pyproject.toml"]
Expand Down
4 changes: 2 additions & 2 deletions conda/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ dependencies:
# Run `pre-commit autoupdate` to get the latest pinned versions of 'rev' in
# `.pre-commit.config.yaml`, then update the pinned versions here.
# Make sure to also update qa in pyproject.toml
- black ==25.1.0
- black ==26.5.1
- flake8 ==7.3.0
- isort ==6.0.1
- mypy ==1.18.2
- mypy ==2.3.0
- pre-commit ==4.3.0
- types-PyYAML >=6.0.0
# Developer Tools
Expand Down
4 changes: 2 additions & 2 deletions e3sm_comms/page_reviewer/utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from typing import Dict, List, Optional, Tuple
from urllib.parse import quote, unquote, urlparse

import requests # type: ignore
import requests
from bs4 import BeautifulSoup
from requests.auth import HTTPBasicAuth # type: ignore
from requests.auth import HTTPBasicAuth


# Classes #####################################################################
Expand Down
6 changes: 3 additions & 3 deletions e3sm_comms/page_reviewer/utils_newsletter_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
from io import BytesIO
from typing import Any, Dict, List, Optional, Set

import pytz # type: ignore
import requests # type: ignore
import pytz
import requests
from bs4 import BeautifulSoup
from PIL import Image
from requests.auth import HTTPBasicAuth # type: ignore
from requests.auth import HTTPBasicAuth

from e3sm_comms.page_reviewer.utils_base import (
Config,
Expand Down
2 changes: 1 addition & 1 deletion e3sm_comms/page_reviewer/utils_resource_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from datetime import datetime
from typing import Any, Dict, List, Tuple

import requests # type: ignore
import requests
from bs4 import BeautifulSoup

from e3sm_comms.page_reviewer.utils_base import (
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ docs = [

# make sure these always match dev.yml and .pre-commit-config.yaml
qa = [
"black==25.1.0",
"black==26.5.1",
"flake8==7.3.0",
"flake8-isort==6.1.1",
"isort==6.0.1",
"mypy==1.18.2",
"mypy==2.3.0",
"pre-commit==4.3.0",
"types-PyYAML >=6.0.0",
]
Expand Down