Skip to content

Commit f20e0c8

Browse files
author
Shyue Ping Ong
committed
Add docs.
1 parent 23e297e commit f20e0c8

File tree

9 files changed

+106
-21
lines changed

9 files changed

+106
-21
lines changed

.github/workflows/testing.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ jobs:
4141
- name: pytest
4242
run: |
4343
pytest --cov=package tests --color=yes
44-
# - name: Coveralls
45-
# uses: coverallsapp/github-action@v2
44+
# - name: Upload coverage reports to Codecov
45+
# uses: codecov/codecov-action@v3
46+
# env:
47+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4648

4749
build:
4850
needs: test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ setuptools*
2424
.*_cache
2525
# VS Code
2626
.vscode/*
27+
_site
2728

2829
# Environments
2930
.env

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
[![GitHub license](https://img.shields.io/github/license/materialsvirtuallab/python_template)](https://github.com/materialsvirtuallab/python_template/blob/main/LICENSE)
2+
[![Linting](https://github.com/materialsvirtuallab/python_template/workflows/Linting/badge.svg)](https://github.com/materialsvirtuallab/python_template/workflows/Linting/badge.svg)
3+
[![Testing](https://github.com/materialsvirtuallab/python_template/workflows/Testing/badge.svg)](https://github.com/materialsvirtuallab/python_template/workflows/Testing/badge.svg)
4+
<!--
5+
[![Downloads](https://pepy.tech/badge/python_template)](https://pepy.tech/project/python_template)
6+
[![codecov](https://codecov.io/gh/materialsvirtuallab/python_template/branch/main/graph/badge.svg?token=3V3O79GODQ)]
7+
(https://codecov.io/gh/materialsvirtuallab/python_template)
8+
-->
9+
110
# Introduction
211

3-
This is a template for setting up Python packages in the Materials Virtual Lab. It comes with the standard Github
4-
workflows, pyproject and linting.
12+
This is a template for setting up Python packages in the Materials Virtual Lab. It comes with the standard Github
13+
workflows, pyproject and linting.

docs/Gemfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
# gem "jekyll", "~> 4.3.2"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
gem "github-pages", group: :jekyll_plugins
16+
# If you have any plugins, put them here!
17+
group :jekyll_plugins do
18+
gem "jekyll-feed", "~> 0.12"
19+
end
20+
21+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22+
# and associated library.
23+
platforms :mingw, :x64_mingw, :mswin, :jruby do
24+
gem "tzinfo", ">= 1", "< 3"
25+
gem "tzinfo-data"
26+
end
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30+
31+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
32+
# do not have a Java counterpart.
33+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
34+
35+
gem "webrick", "~> 1.8"

docs/_config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
title: MVL template
2+
3+
description: >- # this means to ignore newlines until "baseurl:"
4+
This is the template for MAVRL repos.
5+
# twitter_username: jekyllrb
6+
github_username: materialsvirtuallab
7+
8+
# Build settings
9+
remote_theme: just-the-docs/just-the-docs
10+
plugins:
11+
- jekyll-feed
12+
13+
# favicon_ico: "/assets/favicon.ico"
14+
15+
nav_external_links:
16+
- title: "GitHub"
17+
url: "https://github.com/materialsvirtuallab/python_template"
18+
19+
aux_links:
20+
"Materials Virtual Lab":
21+
- "https://materialsvirtuallab.org"

docs/_includes/footer_custom.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<small>&copy; Copyright 2022, Materials Virtual Lab</small>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<span class="site-footer">&copy; Copyright 2022, Materials Virtual Lab</span>

docs/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[![GitHub license](https://img.shields.io/github/license/materialsvirtuallab/python_template)](https://github.com/materialsvirtuallab/python_template/blob/main/LICENSE)
2+
[![Linting](https://github.com/materialsvirtuallab/python_template/workflows/Linting/badge.svg)](https://github.com/materialsvirtuallab/python_template/workflows/Linting/badge.svg)
3+
[![Testing](https://github.com/materialsvirtuallab/python_template/workflows/Testing/badge.svg)](https://github.com/materialsvirtuallab/python_template/workflows/Testing/badge.svg)
4+
<!--
5+
[![Downloads](https://pepy.tech/badge/python_template)](https://pepy.tech/project/python_template)
6+
[![codecov](https://codecov.io/gh/materialsvirtuallab/python_template/branch/main/graph/badge.svg?token=3V3O79GODQ)]
7+
(https://codecov.io/gh/materialsvirtuallab/python_template)
8+
-->
9+
10+
# Introduction
11+
12+
This is a template for setting up Python packages in the Materials Virtual Lab. It comes with the standard Github
13+
workflows, pyproject.toml, docs, and linting.

pyproject.toml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,6 @@ isort.split-on-trailing-comma = false
7676
[tool.pytest.ini_options]
7777
addopts = "--durations=30 --quiet -r xXs --color=yes -p no:warnings --import-mode=importlib"
7878

79-
[tool.coverage.run]
80-
omit = ["pymatgen/cli"]
81-
relative_files = true
82-
83-
[tool.coverage.report]
84-
exclude_lines = [
85-
"@deprecated",
86-
"def __repr__",
87-
"if 0:",
88-
"if __name__ == .__main__.:",
89-
"if self.debug:",
90-
"if settings.DEBUG",
91-
"pragma: no cover",
92-
"raise AssertionError",
93-
"raise NotImplementedError",
94-
]
95-
9679
[tool.mypy]
9780
ignore_missing_imports = true
9881
namespace_packages = true
@@ -109,3 +92,22 @@ titel,alls,ans,nd,mater,nwo,te,hart,ontop,ist,ot,fo,nax,coo,coul,ser,leary,thre,
10992
fase,rute,reson,titels,ges,scalr,strat,struc,hda,nin,ons,pres,kno,loos,lamda,lew
11093
"""
11194
check-filenames = true
95+
96+
[tool.coverage.run]
97+
relative_files = true
98+
99+
[tool.coverage.report]
100+
exclude_lines = [
101+
"@deprecated",
102+
"def __repr__",
103+
"if 0:",
104+
"if __name__ == .__main__.:",
105+
"if self.debug:",
106+
"if settings.DEBUG",
107+
"pragma: no cover",
108+
"raise AssertionError",
109+
"raise NotImplementedError",
110+
"input",
111+
"if TYPE_CHECKING:",
112+
"except PackageNotFoundError:"
113+
]

0 commit comments

Comments
 (0)