Skip to content

Commit

Permalink
Merge pull request #267 from CompRhys/master
Browse files Browse the repository at this point in the history
[WIP] Local Random States
  • Loading branch information
qzhu2017 authored Jul 16, 2024
2 parents 6f1f37a + b7262b3 commit 03b322f
Show file tree
Hide file tree
Showing 37 changed files with 2,438 additions and 2,219 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: pip install uv

- name: Install dependencies
run: pip install .[test]
run: uv pip install .[test] --system

- name: Run Tests
run: pytest pyxtal/test_all.py
run: pytest tests/test_all.py
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright 2018-2020 Scott Fredericks, Qiang Zhu
Copyright 2018 Scott Fredericks, Qiang Zhu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Empty file removed Summary.txt
Empty file.
2 changes: 1 addition & 1 deletion flask/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os


class Config(object):
class Config:
SECRET_KEY = os.environ.get("SECRET_KEY")

MAIL_SERVER = os.environ.get("MAIL_SERVER")
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ target-version = "py39"
line-length = 120
include = ["**/pyproject.toml", "*.ipynb", "*.py", "*.pyi"]
lint.select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle error
"F", # pyflakes
Expand Down Expand Up @@ -41,7 +40,10 @@ lint.ignore = [
"PLR", # pylint refactor
"PT006", # pytest-parametrize-names-wrong-type
"E741", # ambiguous variable name -- turn off due to miller indices h, k, l
"RET505" # Unnecessary else after return
"E722", # do not use bare 'except' -- should be fixed but too much tech debt to fix now
"RET505", # Unnecessary else after return
"SIM300", # Yoda conditions are not allowed
"PLW2901", # loop variable is overwritten
]
lint.pydocstyle.convention = "google"
lint.isort.known-third-party = ["wandb"]
Loading

0 comments on commit 03b322f

Please sign in to comment.