Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

CI: replace flake8 by ruff check #139

Merged
merged 10 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defaults:

jobs:
stable:
name: Run flake8
name: Run ruff
runs-on: ubuntu-latest

steps:
Expand All @@ -20,4 +20,4 @@ jobs:
with:
python-version: 3
- name: Lint EddyMotion
run: pipx run flake8-pyproject
run: pipx run ruff check
36 changes: 26 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,34 @@ exclude = '''
profile = 'black'
skip_gitignore = true

[tool.flake8]
max-line-length = 99
doctests = false
exclude = ["*build/", "docs/"]
select = "C,E,F,W,B,B950"
ignore = "N802,N806,W503,E203"
per-file-ignores = [
"*/__init__.py: F401",
"docs/conf.py: E265",
"/^\\s*\\.\\. _.*?: http/: E501"
[tool.ruff]
line-length = 99

[tool.ruff.lint]
select = [
"F",
"E",
"C",
"W",
"B",
]
ignore = [
"N802",
"N806",
"E203",
esavary marked this conversation as resolved.
Show resolved Hide resolved
]

[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"

[tool.ruff.lint.extend-per-file-ignores]
"*/__init__.py" = ["F401"]
"docs/conf.py" = ["E265"]
"/^\\s*\\.\\. _.*?: http/" = ["E501"]

esavary marked this conversation as resolved.
Show resolved Hide resolved
[tool.ruff.format]
quote-style = "double"

[tool.pytest.ini_options]
pythonpath = "src/ test/"
norecursedirs = [".*", "_*"]
Expand Down
Loading