Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
concepts-processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meldb
concepts-processing
Commits
c82cfa17
Commit
c82cfa17
authored
3 months ago
by
mjbonifa
Browse files
Options
Downloads
Patches
Plain Diff
docs (documentation): initial hatch docs
#7
parent
bfda9c4d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
docs/index.md
+97
-0
97 additions, 0 deletions
docs/index.md
pyproject.toml
+14
-11
14 additions, 11 deletions
pyproject.toml
with
112 additions
and
12 deletions
.gitignore
+
1
−
1
View file @
c82cfa17
...
...
@@ -13,7 +13,7 @@ __pycache__
~$*
# Build
.tox/
venv/*
# ACMC phenotype build files
...
...
This diff is collapsed.
Click to expand it.
docs/index.md
+
97
−
0
View file @
c82cfa17
...
...
@@ -175,6 +175,103 @@ The `phen` command is used phenotype-related operations.
# Development
# Developer Usage Guide for ACMC
## Installation
To install the ACMC package for development, ensure you have Python 3.9 or later installed.
### Clone the Repository
```
sh
git clone https://git.soton.ac.uk/meldb/concepts-processing.git
cd
concepts-processing
```
### Set Up a Virtual Environment
It is recommended to use a virtual environment to manage dependencies.
```
sh
python
-m
venv venv
source
venv/bin/activate
# On Windows use `venv\Scripts\activate`
```
### Install Dependencies
Using
`hatch`
, you can install the necessary dependencies easily.
```
sh
pip
install
--upgrade
pip
pip
install
hatch
```
This will create a virtual environment with all required dependencies.
## Development Environment
### Activate the Development Environment
To enter the development environment, use:
```
sh
hatch shell
```
### Code Formatting
The project uses
`black`
for code formatting. Ensure your code is properly formatted before committing:
```
sh
black acmc
```
### Type Checking
The project uses
`mypy`
for type checking:
```
sh
mypy acmc
```
### Running Tests
Run tests using
`pytest`
:
```
sh
hatch run pytest
```
## Building the Package
To build the package, use:
```
sh
hatch build
```
## Running the CLI
The package provides a command-line interface (CLI) entry point. To run it:
```
sh
acmc
--help
```
## Contributing
If you make changes, ensure all tests pass and code formatting is correct before submitting a merge request.
1.
Create a new branch for your feature or bugfix:
```
sh
git checkout
-b
feature-branch
```
2.
Make changes and commit them:
```
sh
git add
.
git commit
-m
"Description of changes"
```
3.
Push your branch:
```
sh
git push origin feature-branch
```
4.
Open a merge request in GitLab.
## Additional Resources
-
[
Repository
](
https://git.soton.ac.uk/meldb/concepts-processing
)
-
[
Documentation
](
https://git.soton.ac.uk/meldb/concepts-processing/docs
)
-
[
Issue Tracker
](
https://git.soton.ac.uk/meldb/concepts-processing/-/issues
)
# GitLab Workflow for Managing Releases
## Branching Strategy
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
14
−
11
View file @
c82cfa17
...
...
@@ -47,14 +47,6 @@ Repository = "https://git.soton.ac.uk/meldb/concepts-processing"
Documentation
=
"https://git.soton.ac.uk/meldb/concepts-processing/docs"
Issues
=
"https://git.soton.ac.uk/meldb/concepts-processing/-/issues"
[tool.hatch.build]
include
=
[
"acmc/**"
]
# Ensure only the acmc package is included
[tool.hatch.build.targets.sdist]
include
=
[
"acmc/**"
,
]
[tool.hatch.build.targets.wheel]
packages
=
[
"acmc"
]
...
...
@@ -64,6 +56,17 @@ dependencies = [
"pytest"
]
[tool.hatch.envs.default.scripts]
dev
=
"python -m acmc"
test
=
"pytest tests"
\ No newline at end of file
[tool.hatch.envs.dev]
dependencies
=
[
"pytest"
,
"black"
,
"mypy"
]
[tool.hatch.build]
include
=
[
"acmc/**"
]
# Ensure only the acmc package is included
[tool.hatch.build.targets.sdist]
include
=
[
"acmc/**"
,
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment