Skip to content

Commit 88847c3

Browse files
committed
flake8 -> ruff
pytest-flake8 blocking pytest upgrade
1 parent a5df8b7 commit 88847c3

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/testing.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ jobs:
5858
run: |
5959
cd mpcontribs-client
6060
python${{ matrix.python-version }} -m pip install --no-deps .
61-
python${{ matrix.python-version }} -m flake8 --max-line-length 100
62-
python${{ matrix.python-version }} -m pycodestyle --max-line-length 100 .
6361
python${{ matrix.python-version }} -m pytest -n auto -v -s --cov=mpcontribs/client --cov-report=term-missing --cov-report=xml --ignore=bravado
6462
python${{ matrix.python-version }} -m build --outdir ../dist
6563

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ exclude: |
1212
)
1313
1414
repos:
15+
- repo: https://github.com/charliermarsh/ruff-pre-commit
16+
rev: v0.12.0
17+
hooks:
18+
- id: ruff
19+
args: [--fix, --ignore, "D,E501,E741,E402"]
20+
1521
- repo: https://github.com/pre-commit/pre-commit-hooks
1622
rev: v6.0.0
1723
hooks:

mpcontribs-api/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ Documentation = "https://docs.materialsproject.org/services/mpcontribs"
6868
dev = [
6969
"flake8",
7070
"pytest",
71-
"pytest-flake8",
7271
"pytest-pycodestyle",
7372
"pytest-xdist",
7473
]

mpcontribs-client/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ where = ["."]
1414
exclude = ["tests"]
1515
include = ["mpcontribs.client"]
1616

17+
[tool.ruff.lint.pycodestyle]
18+
max-line-length = 100
19+
1720
[project]
1821
name = "mpcontribs-client"
1922
dynamic = ["version"]
@@ -53,7 +56,6 @@ Documentation = "https://docs.materialsproject.org/services/mpcontribs"
5356
dev = [
5457
"flake8",
5558
"pytest",
56-
"pytest-flake8",
5759
"pytest-pycodestyle",
5860
"pytest-cov",
5961
"pytest-xdist",

mpcontribs-portal/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Documentation = "https://docs.materialsproject.org/services/mpcontribs"
5656
dev = [
5757
"flake8",
5858
"pytest",
59-
"pytest-flake8",
6059
"pytest-pycodestyle",
6160
"pytest-xdist",
6261
]

0 commit comments

Comments
 (0)