Skip to content

Commit

Permalink
Exclude site-packages from sphinx for tox runs (#239) (#240)
Browse files Browse the repository at this point in the history
(cherry picked from commit 73f2130)

Co-authored-by: Manoel Marques <manoelmrqs@gmail.com>
  • Loading branch information
mergify[bot] and manoelmarques authored Feb 6, 2023
1 parent 0d8fbd7 commit 096a12f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021, 2022.
# (C) Copyright IBM 2021, 2023.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -159,7 +159,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
exclude_patterns = ["**site-packages", "_build", "**.ipynb_checkpoints"]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "colorful"
Expand Down
4 changes: 2 additions & 2 deletions tools/ignore_untagged_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This code is part of Qiskit.
#
# (C) Copyright IBM 2021, 2022.
# (C) Copyright IBM 2021, 2023.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand All @@ -17,7 +17,7 @@
LATEST_TAG=$(git describe --tags --abbrev=0)

# select only release notes added after the tag was created
for file_changed in `git diff --name-only --diff-filter=A HEAD $LATEST_TAG releasenotes/notes`
for file_changed in `git diff --name-only HEAD $LATEST_TAG releasenotes/notes`
do
if [[ $file_changed == releasenotes/notes/* ]]; then
isInFile=$(grep -Exq "\s*$file_changed," docs/release_notes.rst >/dev/null; echo $?)
Expand Down

0 comments on commit 096a12f

Please sign in to comment.