Skip to content

Commit 8fdb7bb

Browse files
committed
Add pyupgrade hook to automatically upgrade syntax for newer versions of the language.
1 parent 06d3076 commit 8fdb7bb

File tree

82 files changed

+63
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+63
-135
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ repos:
5252
- id: rst-directive-colons
5353
- id: rst-inline-touching-normal
5454
- id: text-unicode-replacement-char
55+
- repo: https://github.com/asottile/pyupgrade
56+
rev: v3.21.1
57+
hooks:
58+
- id: pyupgrade
5559
- repo: https://github.com/codespell-project/codespell
5660
rev: v2.4.1
5761
hooks:

benchmarks/benchmarks/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2020, Intel Corporation
43
# All rights reserved.

benchmarks/benchmarks/bench_elementwise.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2020, Intel Corporation
43
# All rights reserved.

benchmarks/benchmarks/bench_linalg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2020, Intel Corporation
43
# All rights reserved.

benchmarks/benchmarks/bench_random.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2020, Intel Corporation
43
# All rights reserved.

benchmarks/benchmarks/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2020, Intel Corporation
43
# All rights reserved.

benchmarks/pytest_benchmark/test_random.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# cython: language_level=3
2-
# -*- coding: utf-8 -*-
32
# *****************************************************************************
43
# Copyright (c) 2016, Intel Corporation
54
# All rights reserved.

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Configuration file for the Sphinx documentation builder.
43
#

doc/docstring_template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# cython: language_level=3
2-
# -*- coding: utf-8 -*-
32
# *****************************************************************************
43
# Copyright (c) 2016, Intel Corporation
54
# All rights reserved.

dpnp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# *****************************************************************************
32
# Copyright (c) 2016, Intel Corporation
43
# All rights reserved.

0 commit comments

Comments
 (0)