Skip to content

Commit 909cefd

Browse files
author
Diptorup Deb
committed
Tweak flake configurations
1 parent 8e7ab15 commit 909cefd

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.flake8

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
[flake8]
22
filename = *.py, *.pyx
33
max_line_length = 80
4-
max-doc-length = 72
4+
max-doc-length = 80
5+
extend-ignore = E203, W503
56
show-source = True
7+
68
exclude =
79
versioneer.py
810
dpctl/_version.py
11+
12+
per-file-ignores =
13+
dpctl/_sycl_context.pyx: E999, E225
14+
dpctl/_sycl_device.pyx: E999, E225
15+
dpctl/_sycl_device_factory.pyx: E999, E225
16+
dpctl/_sycl_device_event.pyx: E999, E225
17+
dpctl/_sycl_platform.pyx: E999, E225
18+
dpctl/_sycl_queue.pyx: E999, E225, E226, E227
19+
dpctl/_sycl_queue_manager.pyx: E999, E225

.github/workflows/python_style_checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-python@v2
2020
- uses: jamescurtin/isort-action@master
21+
with:
22+
args: ". --check-only"
2123

2224
black:
2325
# The type of runner that the job will run on
@@ -31,7 +33,7 @@ jobs:
3133
- uses: actions/setup-python@v2
3234

3335
# Run black code formatter
34-
- uses: psf/black@20.8b1
36+
- uses: psf/black@21.4b2
3537
with:
3638
args: ". --check"
3739

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/psf/black
17-
rev: 20.8b1
17+
rev: 21.4b2
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/pycqa/isort

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
2+
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
23

34
What?
45
====

0 commit comments

Comments
 (0)