Skip to content

Commit 2b4a9d3

Browse files
committed
updated the lint error hopefully
1 parent 0a929c9 commit 2b4a9d3

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,8 @@ jobs:
6363
python -m pip install --upgrade pip
6464
pip install black==23.12.1 isort==5.13.2 flake8==7.0.0
6565
66-
- name: Create linting configs
67-
run: |
68-
echo "[flake8]
69-
max-line-length = 100
70-
exclude = .git,__pycache__,build,dist,*.egg-info
71-
ignore = E203,W503
72-
per-file-ignores = __init__.py:F401" > .flake8
73-
74-
echo "[tool.isort]
75-
profile = \"black\"
76-
line_length = 100
77-
skip = [\"site-packages\", \"__pycache__\"]" >> pyproject.toml
78-
79-
- name: Format code
80-
run: |
81-
black optimrl tests
82-
isort optimrl tests
83-
8466
- name: Check code style
8567
run: |
8668
black --check optimrl tests
8769
isort --check-only optimrl tests
88-
flake8 optimrl tests
70+
flake8 optimrl tests

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ build-backend = "setuptools.build_meta"
66
exclude = '''
77
/(
88
.git
9-
| __pycache__
10-
| site-packages
11-
| .*\.egg-info
9+
| __pycache__
10+
| site-packages
11+
| .*\.egg-info
1212
)/
1313
'''
1414

1515
[tool.isort]
1616
profile = "black"
1717
skip = [
1818
"site-packages",
19-
"__pycache__",
19+
"__pycache__"
2020
]
2121

22-
2322
[tool.mypy]
2423
ignore_missing_imports = true
2524
strict_optional = true

0 commit comments

Comments
 (0)