Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
- name: Install NeuroMLlite and extra requirements
run: |
pip install .
pip install -r requirements-extra.txt

#pip install 'numpy<=1.23.0' # temp fix, see https://github.com/OpenSourceBrain/osb-model-validation/issues/91
pip install .[dev]


- name: Lint with flake8
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: [ "--maxkb=5000"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
hooks:
- id: ruff
args: [ "--select", "I", "--fix" ]
- id: ruff-format
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.ruff]

exclude = [
"examples",
]

[tool.ruff.lint]
ignore = ["F403", "F405"]
9 changes: 0 additions & 9 deletions requirements-extra.txt

This file was deleted.

85 changes: 85 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[metadata]
name = neuromllite
version = 0.6.1
author = Padraig Gleeson
author_email = [email protected]
url = https://github.com/NeuroML/NeuroMLlit
license = LGPL-3.0-only
description = A common JSON/YAML based format for compact network specification, closely tied to NeuroML v2
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Intended Audience :: Science/Research
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Topic :: Scientific/Engineering

[options]
install_requires =
libNeuroML>=0.5.1
pyyaml
numpy
tables
h5py
modelspec>=0.2.6
ppft[dill]

packages = find:

[options.packages.find]
include =
neuromllite
neuromllite.sweep
neuromllite.gui

[options.entry_points]
console_scripts =
nmllite-ui = neuromllite.gui.NMLliteUI:main

[options.extras_require]
extras =
pyNN
bmtk
matplotlib
PyQt5
pyneuroml
pyelectro
neuron
h5py
graphviz


all =
neuromllite[extras]

dev =
neuromllite[all]
neuromllite[doc]
pytest
pytest-xdist
pre-commit


doc =
sphinxcontrib-bibtex
#pyNN
bmtk
matplotlib
PyQt5
pyneuroml
pyelectro
numpy
neuron
h5py
graphviz
pylems
tables
arbor

[flake8]
extend-ignore = E501, E502, F403, F405, W503, W504
43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

Loading