-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1323 from pmgbergen/ruff
Use Ruff formatting and linting. Install configuration moved to pyproject.toml
- Loading branch information
Showing
70 changed files
with
309 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
# Project information. | ||
[project] | ||
name = "porepy" | ||
version = "1.10.0" | ||
description = "Simulation tool for fractured and deformable porous media" | ||
readme = "Readme.md" | ||
license = { text = "GPL" } | ||
keywords = ["porous media simulation fractures deformable"] | ||
maintainers = [ | ||
{ name = "Eirik Keilegavlen", email = "[email protected]" }, | ||
{ name = "Ivar Stefansson", email = "[email protected]" }, | ||
{ name = "Jakub Both", email = "[email protected]" } | ||
] | ||
urls = { "Homepage" = "https://github.com/pmgbergen/porepy" } | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: GNU General Public License (GPL)", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"deepdiff", | ||
"future", | ||
"gmsh", | ||
"matplotlib < 3.11", | ||
"meshio", | ||
"networkx", | ||
"numba", | ||
"numpy < 2.2", | ||
"scipy", | ||
"seaborn", | ||
"shapely", | ||
"six", | ||
"sympy", | ||
"typing_extensions", | ||
] | ||
|
||
[project.optional-dependencies] | ||
development = [ | ||
"isort", | ||
"ruff", | ||
"mypy", | ||
"mypy-extensions" | ||
] | ||
testing = [ | ||
"pytest >= 4.6", | ||
"pytest-cov", | ||
"pytest-runner" | ||
] | ||
|
||
# Information for the build system. | ||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"porepy" = [ | ||
"py.typed", | ||
"applications/md_grids/gmsh_file_library/**/*.csv", | ||
"applications/md_grids/gmsh_file_library/**/*.geo" | ||
] | ||
|
||
# Testing. | ||
[tool.pytest.ini_options] | ||
python_files = "tests/*.py" | ||
addopts = "--cov=src/porepy --cov-report term-missing -p no:warnings" | ||
|
||
# Static analysis. | ||
[tool.ruff.lint] | ||
ignore = [ | ||
"E731", # do not assign a lambda expression, use a def | ||
"E266", # too many leading '#' for block comment | ||
] | ||
exclude = [ | ||
"src/porepy/__init__.py", | ||
"src/porepy/numerics/ad/__init__.py", | ||
"src/porepy/compositional/__init__.py" | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.