Skip to content
Snippets Groups Projects
Commit 0343c362 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

More fixes

parent f6379e69
No related branches found
No related tags found
2 merge requests!568test mr,!551Fixes
Pipeline #164476 canceled
...@@ -23,23 +23,13 @@ repos: ...@@ -23,23 +23,13 @@ repos:
hooks: hooks:
- id: black - id: black
- repo: https://github.com/Carreau/velin - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 0.0.11
hooks:
- id: velin
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version. # Ruff version.
rev: "v0.11.4" rev: "v0.11.4"
hooks: hooks:
- id: ruff - id: ruff
args: ["--fix", "--select", "I"] 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 - repo: https://github.com/asottile/pyupgrade
rev: v3.19.1 rev: v3.19.1
hooks: hooks:
......
include README.md include README.md
include LICENSE include LICENSE
include CMakeLists.txt # include CMakeLists.txt
include b_asic/GUI/operation_icons/* include b_asic/GUI/operation_icons/*
recursive-include src *.cpp *.hpp # recursive-include src *.cpp *.hpp
...@@ -11,7 +11,7 @@ dependencies = [ ...@@ -11,7 +11,7 @@ dependencies = [
"qtpy", "qtpy",
"graphviz>=0.19", "graphviz>=0.19",
"matplotlib>=3.7", "matplotlib>=3.7",
"setuptools_scm[toml]>=6.2", "setuptools_scm[toml]>=8",
"networkx>=3", "networkx>=3",
"pulp", "pulp",
"qtawesome", "qtawesome",
...@@ -59,12 +59,7 @@ zip-safe = false ...@@ -59,12 +59,7 @@ zip-safe = false
include = ["b_asic*"] include = ["b_asic*"]
[build-system] [build-system]
requires = [ requires = ["setuptools>=80", "setuptools_scm[toml]>=8"]
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel",
"oldest-supported-numpy"
]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.setuptools_scm] [tool.setuptools_scm]
...@@ -77,18 +72,6 @@ fallback_version = "0.0+UNKNOWN" ...@@ -77,18 +72,6 @@ fallback_version = "0.0+UNKNOWN"
homepage = "https://gitlab.liu.se/da/B-ASIC" homepage = "https://gitlab.liu.se/da/B-ASIC"
documentation = "https://da.gitlab-pages.liu.se/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] [tool.mypy]
packages = ["b_asic", "test"] packages = ["b_asic", "test"]
no_site_packages = true no_site_packages = true
...@@ -114,9 +97,24 @@ select = [ ...@@ -114,9 +97,24 @@ select = [
"RUF", "RUF",
"A", "A",
"I", "I",
"G004" "G004",
"D201",
"D206",
"D207",
"D208",
"D209",
"D210",
"D213",
"D214",
"D215",
"D401",
"D404",
"D417",
] ]
ignore = ["F403", "B008", "B021", "B006", "UP038", "RUF023", "A005"] ignore = ["F403", "B008", "B021", "B006", "UP038", "RUF023", "A005"]
[tool.typos] [tool.ruff.lint.isort]
default.extend-identifiers = { ba = "ba", addd0 = "addd0", inout = "inout", ArChItEctUrE = "ArChItEctUrE" } known-first-party = ["b_asic"]
[tool.codespell]
ignore-words-list = ["inout"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment