Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 committed Jul 22, 2023
1 parent d1aa29f commit ce21d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
21 changes: 0 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@
# "Version control integration" in docs/integrations/source_version_control.md
exclude: ^(profiling/|tests/data/)
repos:
- repo: local
hooks:
- id: check-pre-commit-rev-in-example
name: Check pre-commit rev in example
language: python
entry: python -m scripts.check_pre_commit_rev_in_example
files: '(CHANGES\.md|source_version_control\.md)$'
additional_dependencies:
&version_check_dependencies [
commonmark==0.9.1,
pyyaml==6.0.1,
beautifulsoup4==4.9.3,
]

- id: check-version-in-the-basics-example
name: Check black version in the basics example
language: python
entry: python -m scripts.check_version_in_basics_example
files: '(CHANGES\.md|the_basics\.md)$'
additional_dependencies: *version_check_dependencies

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand Down
8 changes: 2 additions & 6 deletions scripts/check_version_in_basics_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
during the release process.
"""

import os
import sys

import commonmark
Expand Down Expand Up @@ -40,9 +39,6 @@ def main(changes: str, the_basics: str) -> None:
if __name__ == "__main__":
with open("CHANGES.md", encoding="utf-8") as fd:
changes = fd.read()
with open(
os.path.join("docs", "usage_and_configuration", "the_basics.md"),
encoding="utf-8",
) as fd:
the_basics = fd.read()

the_basics = ''
main(changes, the_basics)

0 comments on commit ce21d67

Please sign in to comment.