Skip to content

Commit

Permalink
chore: add pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Nov 14, 2023
1 parent 7546561 commit cba4302
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/ambv/black
rev: 23.3.0
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
# See https://pre-commit.com/hooks.html for more hooks
- id: check-added-large-files
Expand Down Expand Up @@ -43,7 +43,7 @@ repos:
- id: trailing-whitespace
files: \.(py|sh|rst|yml|yaml)$
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
args: [--ignore=D100]
Expand All @@ -64,14 +64,14 @@ repos:
]
exclude: ^tests/test_cases/no_closing_bracket\.py$
- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
rev: v6.2.0
hooks:
- id: rstcheck
args: [
--report-level=warning,
]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell
files: \.(py|sh|rst|yml|yaml)$
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ init:
$(PIP) install --upgrade pip wheel && \
$(PIP) install --upgrade -r requirements/local.txt -e . && \
python -m pip check && \
npm install
npm install && \
pre-commit install && \
pre-commit autoupdate


clean:
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ def load_readme() -> str:


def load_about() -> Dict[str, str]:
"""Stringify the __about__ mobule."""
"""Stringify the __about__ module."""
about: Dict[str, str] = {}
with io.open(os.path.join(HERE, "__about__.py"), "rt", encoding="utf-8") as f:
exec(f.read(), about) # pylint: disable=exec-used
return about


def load_version() -> Dict[str, str]:
"""Stringify the __about__ mobule."""
"""Stringify the __about__ module."""
version: Dict[str, str] = {}
with io.open(os.path.join(HERE, "__version__.py"), "rt", encoding="utf-8") as f:
exec(f.read(), version) # pylint: disable=exec-used
Expand All @@ -84,9 +84,10 @@ def get_semantic_version() -> str:
"""
Return the semantic version number.
Note that pypi does not allow semantic version numbers to contain a dash.
Also note that pypi does not allow semantic version numbers to contain a 'v' prefix.
and also that pypi does not allow semantic version numbers to contain a 'next' suffix.
Note:
- pypi does not allow semantic version numbers to contain a dash.
- pypi does not allow semantic version numbers to contain a 'v' prefix.
- pypi does not allow semantic version numbers to contain a 'next' suffix.
"""
return VERSION["__version__"].replace("-next.", "a")

Expand Down

0 comments on commit cba4302

Please sign in to comment.