diff --git a/.coveragerc b/.coveragerc index 0821bd76..c618911f 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,5 @@ [run] branch = True -omit = - setup.py [paths] source = diff --git a/.github/workflows/cis.yml b/.github/workflows/cis.yml index de1c476c..28c6ed7c 100644 --- a/.github/workflows/cis.yml +++ b/.github/workflows/cis.yml @@ -13,7 +13,6 @@ on: - "src/**" - "tests/*" - pyproject.toml - - setup.py - tox.ini jobs: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 842db333..bd573bdc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,7 +13,6 @@ on: - "src/**" - "doc/**" - pyproject.toml - - setup.py jobs: docs: diff --git a/.github/workflows/frameworks.yml b/.github/workflows/frameworks.yml index 9376c6d7..3b924df7 100644 --- a/.github/workflows/frameworks.yml +++ b/.github/workflows/frameworks.yml @@ -12,7 +12,6 @@ on: - "src/**" - "tests/frameworks/*" - pyproject.toml - - setup.py - tox.ini jobs: diff --git a/pyproject.toml b/pyproject.toml index 217d1541..789c5a02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/setup.py b/setup.py deleted file mode 100644 index 22ffbcf7..00000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python3 - -# Prepare a release: -# -# - git pull --rebase -# - run tests: tox -# - set release date in the changelog -# - git commit -a -# - git push -# - check GHA CI status: -# https://github.com/MatthieuDartiailh/bytecode/actions -# -# Release a new version: -# -# - git tag VERSION -# - git push --tags -# -# After the release: -# -# - set version to n+1 -# - git commit -a -m "post-release" -# - git push - -from setuptools import setup - -if __name__ == "__main__": - setup() diff --git a/tox.ini b/tox.ini index a77d9362..7fba64ae 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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]