diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60bdd59..bc5f0aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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] @@ -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)$ diff --git a/Makefile b/Makefile index 3db28e6..f2defd3 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/setup.py b/setup.py index a355bb3..bc1d769 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ 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 @@ -73,7 +73,7 @@ def load_about() -> Dict[str, str]: 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 @@ -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")