|
1 | | -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "fjsplib" |
3 | 3 | version = "0.0.1" |
4 | 4 | description = "Python package to read and write FJSP instances." |
5 | | -authors = ["Leon Lan <leon.lanyidong@gmail.com>"] |
6 | | -license = "MIT" |
| 5 | +authors = [ |
| 6 | + { name = "Leon Lan", email = "l.lan@vu.nl"}, |
| 7 | +] |
| 8 | +license = { text = "MIT License" } |
7 | 9 | readme = "README.md" |
8 | | -repository = "https://github.com/leonlan/FJSPLIB" |
| 10 | +keywords = [ |
| 11 | + "scheduling", |
| 12 | + "flexible job shop scheduling", |
| 13 | + "fjsp", |
| 14 | +] |
| 15 | +classifiers = [ |
| 16 | + "Intended Audience :: Developers", |
| 17 | + "Intended Audience :: Science/Research", |
| 18 | + "Development Status :: 5 - Production/Stable", |
| 19 | + "Topic :: Software Development", |
| 20 | + "Topic :: Scientific/Engineering", |
| 21 | + "License :: OSI Approved :: MIT License", |
| 22 | + "Programming Language :: Python :: 3", |
| 23 | +] |
| 24 | +requires-python = ">=3.9" |
| 25 | +dependencies = [ |
| 26 | + "numpy>=1.26.0", |
| 27 | +] |
9 | 28 |
|
10 | | -[tool.poetry.dependencies] |
11 | | -python = "^3.9" |
12 | | -numpy = "^1.26.4" |
13 | 29 |
|
14 | | -[tool.poetry.group.dev.dependencies] |
15 | | -pre-commit = "^2.19.0" |
16 | | -pytest = "^7.1.2" |
17 | | -pytest-cov = ">=2.6.1" |
| 30 | +[project.urls] |
| 31 | +Repository = "https://github.com/PyJobShop/FJSPLIB" |
18 | 32 |
|
19 | 33 |
|
20 | | -[tool.black] |
21 | | -line-length = 79 |
| 34 | +[dependency-groups] |
| 35 | +dev = [ |
| 36 | + "pre-commit>=3.8.0", |
| 37 | + "pytest>=8.3.2", |
| 38 | +] |
| 39 | + |
| 40 | + |
| 41 | +[tool.uv] |
| 42 | +default-groups = ["dev"] |
22 | 43 |
|
23 | 44 |
|
24 | 45 | [tool.mypy] |
25 | 46 | ignore_missing_imports = true |
26 | 47 |
|
27 | 48 |
|
| 49 | +[tool.black] |
| 50 | +line-length = 79 |
| 51 | + |
| 52 | + |
28 | 53 | [tool.ruff] |
29 | 54 | line-length = 79 |
| 55 | +extend-include = ["*.ipynb"] |
| 56 | + |
30 | 57 |
|
31 | 58 | [tool.ruff.lint] |
32 | | -ignore-init-module-imports = true |
33 | 59 | select = [ |
34 | | - "E", "F", "I", "NPY", "PYI", "Q", "RET", "RSE", "RUF", "SLF", "SIM", "TCH" |
| 60 | + "E", # pycodestyle errors |
| 61 | + "W", # pycodestyle warnings |
| 62 | + "F", # pyflakes |
| 63 | + "I", # isort |
| 64 | + "C", # flake8-comprehensions |
| 65 | + "B", # flake8-bugbear |
| 66 | +] |
| 67 | +ignore = [ |
| 68 | + "E741", # ambiguous variable name, needed for indexing |
| 69 | + "C901", # too complex |
35 | 70 | ] |
36 | | - |
37 | | -[tool.ruff.lint.isort] |
38 | | -case-sensitive = true |
39 | | -known-first-party = ["fjsplib", "tests"] |
40 | 71 |
|
41 | 72 |
|
42 | | -[tool.pytest.ini_options] |
43 | | -addopts = "--cov=. --cov-report=xml --cov-report=term" |
44 | | -testpaths = "tests" |
| 73 | +[tool.ruff.lint.per-file-ignores] |
| 74 | +"__init__.py" = ["F401"] # ignore unused module imports |
45 | 75 |
|
46 | 76 |
|
47 | 77 | [build-system] |
48 | | -requires = ["poetry-core"] |
49 | | -build-backend = "poetry.core.masonry.api" |
| 78 | +requires = ["hatchling"] |
| 79 | +build-backend = "hatchling.build" |
0 commit comments