Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff fixes #141

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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