Skip to content

Commit 4b27833

Browse files
[pre-commit.ci] pre-commit autoupdate (#455)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/Lucas-C/pre-commit-hooks: v1.3.1 → v1.4.2](Lucas-C/pre-commit-hooks@v1.3.1...v1.4.2) - [github.com/pycqa/pydocstyle: 6.1.1 → 6.3.0](PyCQA/pydocstyle@6.1.1...6.3.0) - https://github.com/PyCQA/doc8/: v1.0.0 → v1.1.1 - [github.com/adrienverge/yamllint.git: v1.28.0 → v1.29.0](https://github.com/adrienverge/yamllint.git/compare/v1.28.0...v1.29.0) - [github.com/asottile/pyupgrade: v3.2.0 → v3.3.1](asottile/pyupgrade@v3.2.0...v3.3.1) - [github.com/PyCQA/isort: 5.10.1 → 5.12.0](PyCQA/isort@5.10.1...5.12.0) - [github.com/psf/black: 22.10.0 → 22.12.0](psf/black@22.10.0...22.12.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](adamchainz/blacken-docs@v1.12.1...1.13.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0) - [github.com/mgedmin/check-manifest: 0.48 → 0.49](mgedmin/check-manifest@0.48...0.49) * Update CHANGELOG and keep Flake8 5.X * Disable `no-member` Pylint warning on pre-commit CI * Fix failing GitHub workflows * Proper fix for Clang-10 workflow * New attempt at fixing build for Clang-10 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add Git workaround on all container workflows * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix Clang-10 build again --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com>
1 parent 7cac539 commit 4b27833

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,21 @@ jobs:
112112
env:
113113
CC: clang
114114
CXX: clang++
115-
PROJECTQ_CLEANUP_COMPILER_FLAGS: ${{ (matrix.clang < 10) && 1 || 0 }}
115+
PROJECTQ_CLEANUP_COMPILER_FLAGS: ${{ (matrix.clang <= 10) && 1 || 0 }}
116116

117117
name: "Python 3 • Clang ${{ matrix.clang }} • x64"
118118
container: "silkeh/clang:${{ matrix.clang }}"
119119

120120
steps:
121+
- name: Install Git
122+
if: matrix.clang == 10
123+
run: |
124+
apt-get update && apt-get install -y git --no-install-recommends
125+
126+
# Work-around for https://github.com/actions/runner-images/issues/6775
127+
- name: Change Owner of Container Working Directory
128+
run: chown root:root .
129+
121130
- uses: actions/checkout@v3
122131

123132
- name: Get history and tags for SCM versioning to work
@@ -168,6 +177,10 @@ jobs:
168177
steps:
169178
- uses: actions/checkout@v3
170179

180+
# Work-around for https://github.com/actions/runner-images/issues/6775
181+
- name: Change Owner of Container Working Directory
182+
run: chown root:root .
183+
171184
- name: Get history and tags for SCM versioning to work
172185
if: ${{ !env.ACT }}
173186
run: |
@@ -257,6 +270,10 @@ jobs:
257270
yum install -y git
258271
git config --global --add safe.directory /__w/ProjectQ/ProjectQ
259272
273+
# Work-around for https://github.com/actions/runner-images/issues/6775
274+
- name: Change Owner of Container Working Directory
275+
run: chown root:root .
276+
260277
- uses: actions/checkout@v3
261278

262279
- name: Get history and tags for SCM versioning to work

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: check-useless-excludes
2424

2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.3.0
26+
rev: v4.4.0
2727
hooks:
2828
- id: check-added-large-files
2929
- id: check-ast
@@ -40,19 +40,19 @@ repos:
4040

4141
# Changes tabs to spaces
4242
- repo: https://github.com/Lucas-C/pre-commit-hooks
43-
rev: v1.3.1
43+
rev: v1.4.2
4444
hooks:
4545
- id: remove-tabs
4646

4747
- repo: https://github.com/pycqa/pydocstyle
48-
rev: 6.1.1
48+
rev: 6.3.0
4949
hooks:
5050
- id: pydocstyle
5151
exclude: (_test.*\.py)$
5252
additional_dependencies: [toml]
5353

5454
- repo: https://github.com/PyCQA/doc8/
55-
rev: v1.0.0
55+
rev: v1.1.1
5656
hooks:
5757
- id: doc8
5858
require_serial: false
@@ -67,31 +67,31 @@ repos:
6767
args: [-S, '.git,third_party', -I, .codespell.allow]
6868

6969
- repo: https://github.com/adrienverge/yamllint.git
70-
rev: v1.28.0
70+
rev: v1.29.0
7171
hooks:
7272
- id: yamllint
7373
require_serial: false
7474

7575
- repo: https://github.com/asottile/pyupgrade
76-
rev: v3.2.0
76+
rev: v3.3.1
7777
hooks:
7878
- id: pyupgrade
7979
args: [--py37-plus, --keep-mock]
8080

8181
- repo: https://github.com/PyCQA/isort
82-
rev: 5.10.1
82+
rev: 5.12.0
8383
hooks:
8484
- id: isort
8585
name: isort (python)
8686

8787
- repo: https://github.com/psf/black
88-
rev: 22.10.0
88+
rev: 22.12.0
8989
hooks:
9090
- id: black
9191
language_version: python3
9292

9393
- repo: https://github.com/asottile/blacken-docs
94-
rev: v1.12.1
94+
rev: 1.13.0
9595
hooks:
9696
- id: blacken-docs
9797
args: [-S, -l, '120']
@@ -116,11 +116,11 @@ repos:
116116
rev: 'v3.0.0a5'
117117
hooks:
118118
- id: pylint
119-
args: ['--score=n']
119+
args: ['--score=n', '--disable=no-member']
120120
additional_dependencies: [pybind11>=2.6, numpy, requests, matplotlib, networkx]
121121

122122
- repo: https://github.com/mgedmin/check-manifest
123-
rev: '0.48'
123+
rev: '0.49'
124124
hooks:
125125
- id: check-manifest
126126
additional_dependencies: ['setuptools-scm', 'pybind11>=2.6']

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Repository
1515

1616
- Update GitHub workflow action versions: `actions/cache@v3`, `actions/checkout@v3`, `actions/setup-python@v4`
17+
- Fix failing GitHub workflows (Clang-10)
1718
- Introduce pre-commit CI
1819
- Update to clang-tidy 14 in GitHub workflow
1920
- Added new pre-commit hooks: `codespell`, `doc8`, `pydocstyle` and `yamllint`
2021
- Update pre-commit hook versions
22+
- Keep `flake8` hook to version 5.0.4 until plugin support Flake8 6.X
23+
- Disable `no-member` warning for Pylint on pre-commit CI
2124

2225
## [v0.8.0] - 2022-10-18
2326

0 commit comments

Comments
 (0)