Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to src layout #58

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Run tests
run: |
pytest -n logical -v --cov=openfe_gromacs --cov-report=xml --color=yes openfe_gromacs/tests/
pytest -n logical -v --cov=src/openfe_gromacs --cov-report=xml --color=yes src/openfe_gromacs/tests/

- name: CodeCov
uses: codecov/codecov-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ repos:
rev: 22.12.0
hooks:
- id: black
files: ^openfe_gromacs
files: ^src/openfe_gromacs
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
files: ^openfe_gromacs
files: ^src/openfe_gromacs
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
files: ^openfe_gromacs
files: ^src/openfe_gromacs
additional_dependencies: [Flake8-pyproject]
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.3.1'
Expand Down
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
from pathlib import Path
import shutil
import sys
sys.path.insert(0, os.path.abspath('..'))

import openfe_gromacs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not necessary but we will eventually want it under version (below), do we know why it was failing?

sys.path.insert(0, os.path.abspath('../src'))


# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -53,7 +51,6 @@
"sphinx_design",
"sphinx.ext.intersphinx",
"sphinx.ext.autosummary",
"docs._ext.sass",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this being removed?

"myst_parser",
"nbsphinx",
"nbsphinx_link",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ match = ["*"]
default-tag = "0.0.0"

[tool.versioningit.write]
file = "openfe_gromacs/_version.py"
file = "src/openfe_gromacs/_version.py"


[tool.coverage.run]
Expand All @@ -91,7 +91,7 @@ omit = [
# Omit the tests
"*/tests/*",
# Omit generated versioneer
"openfe_gromacs/_version.py"
"src/openfe_gromacs/_version.py"
]

[tool.flake8]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading