diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b45ba90c3866615be8a8250dd0c299270e8a6be..c4d305781b0674d354e08a787efba577f5864a7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,23 +23,13 @@ repos: hooks: - id: black - - repo: https://github.com/Carreau/velin - rev: 0.0.11 - hooks: - - id: velin - - - repo: https://github.com/charliermarsh/ruff-pre-commit + - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: "v0.11.4" hooks: - id: ruff args: ["--fix", "--select", "I"] - - repo: https://github.com/adamchainz/blacken-docs - rev: 1.19.1 - hooks: - - id: blacken-docs - - repo: https://github.com/asottile/pyupgrade rev: v3.19.1 hooks: diff --git a/MANIFEST.in b/MANIFEST.in index 36ba9fca42e0017fece97fcf50bd793cd372eda8..0df7fc852f1fe512c9fe8afaf38fe21ee559a602 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,5 @@ include README.md include LICENSE -include CMakeLists.txt +# include CMakeLists.txt include b_asic/GUI/operation_icons/* -recursive-include src *.cpp *.hpp +# recursive-include src *.cpp *.hpp diff --git a/pyproject.toml b/pyproject.toml index 80fa5ce8e173b4e1e7b6611b6f7c77843a8e2142..f83b72d96915e8c400cbdc4dcef2558c186a60ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ dependencies = [ "qtpy", "graphviz>=0.19", "matplotlib>=3.7", - "setuptools_scm[toml]>=6.2", + "setuptools_scm[toml]>=8", "networkx>=3", "pulp", "qtawesome", @@ -59,12 +59,7 @@ zip-safe = false include = ["b_asic*"] [build-system] -requires = [ - "setuptools>=45", - "setuptools_scm[toml]>=6.2", - "wheel", - "oldest-supported-numpy" -] +requires = ["setuptools>=80", "setuptools_scm[toml]>=8"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] @@ -77,18 +72,6 @@ fallback_version = "0.0+UNKNOWN" homepage = "https://gitlab.liu.se/da/B-ASIC" documentation = "https://da.gitlab-pages.liu.se/B-ASIC/" -[tool.black] -skip-string-normalization = true -preview = true -line-length = 88 -exclude = "(test/test_gui/*|b_asic/scheduler_gui/ui_main_window.py)" - -[tool.isort] -profile = "black" -line_length = 88 -src_paths = ["b_asic", "test"] -skip = ["test/test_gui", "b_asic/scheduler_gui/ui_main_window.py"] - [tool.mypy] packages = ["b_asic", "test"] no_site_packages = true @@ -114,9 +97,24 @@ select = [ "RUF", "A", "I", - "G004" + "G004", + "D201", + "D206", + "D207", + "D208", + "D209", + "D210", + "D213", + "D214", + "D215", + "D401", + "D404", + "D417", ] ignore = ["F403", "B008", "B021", "B006", "UP038", "RUF023", "A005"] -[tool.typos] -default.extend-identifiers = { ba = "ba", addd0 = "addd0", inout = "inout", ArChItEctUrE = "ArChItEctUrE" } +[tool.ruff.lint.isort] +known-first-party = ["b_asic"] + +[tool.codespell] +ignore-words-list = ["inout"]