Skip to content

Commit 4551e82

Browse files
authored
Merge pull request #109 from materialsproject/patch_trans
# Linting change, New minor functions
2 parents c56b9aa + 24e15e4 commit 4551e82

File tree

14 files changed

+234
-362
lines changed

14 files changed

+234
-362
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 2
8+
allow:
9+
- dependency-type: direct
10+
- dependency-type: indirect
11+
ignore:
12+
- dependency-name: mistune
13+
- dependency-name: numpy

.github/workflows/testing.yml

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,22 @@ on:
22
push:
33
branches:
44
- main
5-
65
tags:
76
- 'v*'
8-
97
pull_request:
108
branches:
119
- main
12-
13-
1410
jobs:
15-
16-
paper:
17-
runs-on: ubuntu-latest
18-
name: Paper Draft
19-
steps:
20-
- name: Checkout
21-
uses: actions/checkout@v2
22-
- name: Build draft PDF
23-
uses: openjournals/openjournals-draft-action@master
24-
with:
25-
journal: joss
26-
# This should be the path to the paper within your repo.
27-
paper-path: paper/paper.md
28-
- name: Upload
29-
uses: actions/upload-artifact@v1
30-
with:
31-
name: paper
32-
# This is the output path where Pandoc will write the compiled
33-
# PDF. Note, this should be the same directory as the input
34-
# paper.md
35-
path: paper/paper.pdf
3611
lint:
3712
runs-on: ubuntu-latest
3813

3914
steps:
40-
- uses: actions/checkout@v2
41-
42-
- uses: actions/setup-python@v2
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
4317
with:
44-
python-version: 3.8
18+
python-version: "3.10"
19+
cache: pip
20+
cache-dependency-path: pyproject.toml
4521

4622
- name: Install dependencies
4723
run: |
@@ -58,7 +34,7 @@ jobs:
5834
runs-on: ubuntu-latest
5935
strategy:
6036
matrix:
61-
python-version: [ 3.8, 3.9 ]
37+
python-version: [ "3.9", "3.10", "3.11" ]
6238

6339
steps:
6440
- uses: actions/[email protected]
@@ -101,10 +77,11 @@ jobs:
10177

10278
- uses: actions/setup-python@v3
10379
with:
104-
python-version: 3.9
80+
python-version: 3.11
10581

10682
- name: Install dependencies
10783
run: |
84+
python -m pip install --upgrade pip
10885
pip install -e .[strict]
10986
pip install -e .[docs]
11087
- name: Build

.pre-commit-config.yaml

Lines changed: 23 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,36 @@
11
default_language_version:
22
python: python3
3-
exclude: '^src/atomate2/vasp/schemas/calc_types/'
43
repos:
5-
- repo: https://github.com/charliermarsh/ruff-pre-commit
6-
rev: v0.0.250
7-
hooks:
8-
- id: ruff
9-
args: [--fix]
10-
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.4.0
12-
hooks:
13-
- id: check-yaml
14-
- id: fix-encoding-pragma
15-
args: [--remove]
16-
- id: end-of-file-fixer
17-
- id: trailing-whitespace
18-
- repo: https://github.com/psf/black
19-
rev: 22.12.0
20-
hooks:
21-
- id: black
22-
- repo: https://github.com/asottile/blacken-docs
23-
rev: v1.12.1
24-
hooks:
25-
- id: blacken-docs
26-
additional_dependencies: [black]
27-
exclude: README.md
28-
- repo: https://github.com/pycqa/flake8
29-
rev: 6.0.0
30-
hooks:
31-
- id: flake8
32-
entry: pflake8
33-
files: ^src/
34-
additional_dependencies:
35-
- pyproject-flake8==6.0.0
36-
- flake8-bugbear==22.12.6
37-
- flake8-typing-imports==1.14.0
38-
- flake8-docstrings==1.6.0
39-
- flake8-rst-docstrings==0.3.0
40-
- flake8-rst==0.8.0
41-
- repo: https://github.com/pre-commit/pygrep-hooks
42-
rev: v1.10.0
43-
hooks:
44-
- id: python-use-type-annotations
45-
- id: rst-backticks
46-
- id: rst-directive-colons
47-
- id: rst-inline-touching-normal
4+
- repo: https://github.com/astral-sh/ruff-pre-commit
5+
# Ruff version.
6+
rev: v0.1.8
7+
hooks:
8+
# Run the linter.
9+
- id: ruff
10+
args: [ --fix ]
11+
# Run the formatter.
12+
- id: ruff-format
4813
- repo: https://github.com/pre-commit/mirrors-mypy
49-
rev: v0.991
14+
rev: v1.5.1
5015
hooks:
5116
- id: mypy
5217
files: ^src/
18+
args:
19+
- --namespace-packages
20+
- --explicit-package-bases
5321
additional_dependencies:
5422
- tokenize-rt==4.1.0
5523
- types-pkg_resources==0.1.2
56-
- types-paramiko
5724
- repo: https://github.com/codespell-project/codespell
58-
rev: v2.2.2
25+
rev: v2.2.6
5926
hooks:
6027
- id: codespell
61-
stages: [commit, commit-msg]
62-
args: [--ignore-words-list, 'titel,statics,ba,nd,te']
63-
types_or: [python, rst, markdown]
28+
name: codespell
29+
description: Checks for common misspellings in text files.
30+
entry: codespell
31+
language: python
32+
types: [text]
33+
args: [
34+
--ignore-words-list, 'titel,statics,ba,nd,te,mater,commun,vise,dscribe',
35+
--skip, "*.ipynb,./tests,*paper*",
36+
]

paper/fig1.png

-354 KB
Binary file not shown.

paper/paper.bib

Lines changed: 0 additions & 40 deletions
This file was deleted.

paper/paper.md

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)