Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bachelor-paa-bittet
soitool
Commits
46f62035
Commit
46f62035
authored
5 years ago
by
Anders H. Rebner
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.stud.idi.ntnu.no/bachelor-paa-bittet/soitool
parents
e364df2c
dbfd4321
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-1
4 additions, 1 deletion
.gitignore
README.md
+39
-0
39 additions, 0 deletions
README.md
with
43 additions
and
1 deletion
.gitignore
+
4
−
1
View file @
46f62035
# virtual environment folder
venv
# vscode workspace
.vscode
...
...
@@ -26,4 +29,4 @@ tags
# Coc configuration directory
.vim
__pycache__/
\ No newline at end of file
__pycache__/
This diff is collapsed.
Click to expand it.
README.md
+
39
−
0
View file @
46f62035
# Repo for bachelor SOI-tool
## Forutsetninger
*
`Python 3.7`
*
`Pip 20.0`
*
Windows 10 eller Ubuntu 18.04. Merk at flesteparten av gruppen arbeider på Windows 10
## Oppsett med virtual environment
```
bash
# initialiser virtual environment
python
-m
venv venv
# aktiver virtual environment (Windows)
./venv/Scripts/activate
# aktiver virtual environment (Ubuntu, ikke testet)
./venv/bin/activate
# sikre at venv har riktige versjoner av kritiske innebygde pakker
# (kanskje unødvendig)
# dette blir gjort fordi default gir pip-18, som gir errormeldinger.
# Se https://bugs.python.org/issue30628
python
-m
pip
install
pip
==
'20.0'
setuptools
==
'45.2'
wheel
==
'0.34'
# installer pakker
pip
install
-r
requirements.txt
# ...jobb med koden...
# for å deaktivere virtual environment
deactivate
```
## Linting
*TODO*
## Testing
Tester er skrevet med
`unittest`
modulen, og ligger i mappen
`test`
.
*
For å kjøre alle tester:
`python -m unittest`
*
For å kjøre en enkelt test modul (fil i
`test`
mappen):
`python -m unittest test.<navnet_til_modulen>`
*
For å kjøre en enkelt test metode (fil i
`test`
mappen):
`python -m unittest test.<navnet_til_modulen>.<navnet til klassen>.<navnet til metoden>`
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