-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move to flit for PEP 621 compliant build (see also aiidateam/aiida-core#5312) - Remove `setup.py`,` setup.json`, `MANIFEST.in`, `check_version.py`, and `.coveragerc` - Set `requires-python = ">=3.7"` - Move from `yapf` to `black` for code formatting - Add `isort` and `pyupgrade` pre-commit hooks - Move documentation theme from `sphinx-rtd-theme` to `furo` - Add `tox` configuration (in `pyproject.toml`) Note the setuptools `reentry_register` hook is no longer possible, although reentry is anyway removed in AiiDA v2.
- Loading branch information
1 parent
e460129
commit 577bf60
Showing
32 changed files
with
429 additions
and
511 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
.DS_Store | ||
aiida-diff/ | ||
.pytest_cache/ | ||
aiida-ck/ | ||
.tox/ | ||
.vscode/ |
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
"version": "0.1.0a0", | ||
"author": "The AiiDA Team", | ||
"aiida_min_version": "1.1.0", | ||
"year": "2020" | ||
"year": "2022" | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
cookiecutter | ||
yapf==0.30.0 | ||
black==21.12b0 |
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,23 @@ | ||
[tox] | ||
envlist = build | ||
|
||
[testenv] | ||
basepython = python3 | ||
skip_install = true | ||
|
||
[testenv:build] | ||
description = Build a package from the template and install | ||
deps = -rrequirements.txt | ||
setenv = | ||
PLUGIN_NAME = aiida-ck | ||
whitelist_externals = | ||
cd | ||
git | ||
rm | ||
commands = | ||
rm -rf {env:PLUGIN_NAME} | ||
cookiecutter --no-input . plugin_name={env:PLUGIN_NAME} | ||
git init -b main {env:PLUGIN_NAME} | ||
cd {env:PLUGIN_NAME} && git add -A | ||
pip install -e {env:PLUGIN_NAME}[testing,docs,pre-commit] | ||
reentry scan -r aiida |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
version: 2 | ||
|
||
python: | ||
version: 3.8 | ||
version: "3.8" | ||
install: | ||
- method: pip | ||
path: . | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
"""pytest fixtures for simplified testing.""" | ||
from __future__ import absolute_import | ||
import pytest | ||
pytest_plugins = ['aiida.manage.tests.pytest_fixtures'] | ||
|
||
pytest_plugins = ["aiida.manage.tests.pytest_fixtures"] | ||
|
||
@pytest.fixture(scope='function', autouse=True) | ||
|
||
@pytest.fixture(scope="function", autouse=True) | ||
def clear_database_auto(clear_database): # pylint: disable=unused-argument | ||
"""Automatically clear database in between tests.""" | ||
|
||
|
||
@pytest.fixture(scope='function') | ||
def {{cookiecutter.entry_point_prefix}}_code(aiida_local_code_factory): | ||
"""Get a {{cookiecutter.entry_point_prefix}} code. | ||
""" | ||
return aiida_local_code_factory(executable='diff', entry_point='{{cookiecutter.entry_point_prefix}}') | ||
"""Get a {{cookiecutter.entry_point_prefix}} code.""" | ||
return aiida_local_code_factory(executable="diff", entry_point="{{cookiecutter.entry_point_prefix}}") |
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
Oops, something went wrong.