Skip to content

Commit

Permalink
Merge pull request #141 from MatthieuDartiailh/ruff-fixes
Browse files Browse the repository at this point in the history
Ruff fixes
  • Loading branch information
MatthieuDartiailh authored Feb 5, 2024
2 parents 60e9e4e + e2545d7 commit 8cb56dc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 41 deletions.
2 changes: 0 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[run]
branch = True
omit =
setup.py

[paths]
source =
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/cis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
- "src/**"
- "tests/*"
- pyproject.toml
- setup.py
- tox.ini

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
- "src/**"
- "doc/**"
- pyproject.toml
- setup.py

jobs:
docs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/frameworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- "src/**"
- "tests/frameworks/*"
- pyproject.toml
- setup.py
- tox.ini

jobs:
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ __version__ = "{version}"

[tool.ruff]
src = ["src"]
select = ["B", "C", "E", "F", "W", "B9", "I", "C90", "RUF"]
extend-exclude = ["tests/instruments/hardware/nifpga/scope_based"]
extend-ignore = ["E203", "E266", "E501", "F403", "F401", "RUF012"]
line-length = 88

[tool.ruff.isort]
combine-as-imports = true
extra-standard-library = ["opcode"]
[tool.ruff.lint]
select = ["B", "C", "E", "F", "W", "B9", "I", "C90", "RUF"]
extend-ignore = ["E203", "E266", "E501", "F403", "F401", "RUF012"]

[tool.ruff.mccabe]
max-complexity = 42
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["opcode"]

[tool.ruff.lint.mccabe]
max-complexity = 42

[tool.mypy]
follow_imports = "normal"
Expand Down
27 changes: 0 additions & 27 deletions setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ deps=
ruff
commands =
ruff src/bytecode tests
ruff format --check src/bytecode tests setup.py
ruff format --check src/bytecode tests

[testenv:lint]
basepython = python3
Expand All @@ -24,7 +24,7 @@ deps=
mypy
commands =
ruff src/bytecode tests
ruff format --check src/bytecode tests setup.py
ruff format --check src/bytecode tests
mypy src tests

[testenv:docs]
Expand Down

0 comments on commit 8cb56dc

Please sign in to comment.