Skip to content

Commit

Permalink
Modified pyprojec.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed May 23, 2024
1 parent 5017688 commit 9c06aca
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 8 deletions.
40 changes: 34 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=61.0.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
name = 'simulationparsers'
version = '1.1'
description = 'Collection of NOMAD parsers for simulation codes.'
readme = "README.md"
authors = [{ name = "The NOMAD Authors" }]
authors = [
{ name = "Alvin Noe Ladines", email = "[email protected]" },
{ name = "Jose M. Pizarro", email = "[email protected]" },
]
maintainers = [
{ name = "Alvin Noe Ladines", email = "[email protected]" },
{ name = "Jose M. Pizarro", email = "[email protected]" },
]
license = { file = "LICENSE" }
requires-python = ">=3.9"
dependencies = [
"nomad-lab>=1.2.0",
"nomad-schema-plugin-run@git+https://github.com/nomad-coe/nomad-schema-plugin-run.git@develop",
]

[project.urls]
homepage = "https://github.com/nomad-coe/simulation-parsers"
"Homepage" = "https://github.com/nomad-coe/simulation-parsers"
"Bug Tracker" = "https://github.com/nomad-coe/simulation-parsers/issues"

[project.optional-dependencies]
dev = [
Expand All @@ -32,16 +41,18 @@ dev = [
where = [
".",
"simulationparsers/abacus",
"simulationparsers/wannier90",
"simulationparsers/magres",
]

[tool.ruff]
include = ["simulationparsers/*.py", "tests/*.py"]
select = [
lint.select = [
"E", # pycodestyle
"W", # pycodestyle
"PL", # pylint
]
ignore = [
lint.ignore = [
"E501", # Line too long ({width} > {limit} characters)
"E701", # Multiple statements on one line (colon)
"E731", # Do not assign a lambda expression, use a def
Expand All @@ -56,7 +67,24 @@ ignore = [
"PLR1714", # consider-using-in
"PLR5501", # else-if-used
]
fixable = ["ALL"]
lint.fixable = ["ALL"]

# Same as Black.
line-length = 88
indent-width = 4

[tool.ruff.format]
# use single quotes for strings.
quote-style = "single"

# indent with spaces, rather than tabs.
indent-style = "space"

# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false

# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"

[tool.setuptools.package-data]
simulationparsers = ['*/metadata.yaml', '*/README.md']
2 changes: 1 addition & 1 deletion simulationparsers/magres

0 comments on commit 9c06aca

Please sign in to comment.