jqmc 0.1.0a0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jqmc-0.1.0a0/.devcontainer/Dockerfile +35 -0
- jqmc-0.1.0a0/.devcontainer/devcontainer.json +23 -0
- jqmc-0.1.0a0/.github/CODEOWNERS +3 -0
- jqmc-0.1.0a0/.github/workflows/jqmc-deploy-gh-pages.yml +38 -0
- jqmc-0.1.0a0/.github/workflows/jqmc-deploy-test.yml +38 -0
- jqmc-0.1.0a0/.github/workflows/jqmc-deploy.yml +109 -0
- jqmc-0.1.0a0/.github/workflows/jqmc-run-full-pytest.yml +96 -0
- jqmc-0.1.0a0/.github/workflows/jqmc-run-short-pytest.yml +78 -0
- jqmc-0.1.0a0/.gitignore +166 -0
- jqmc-0.1.0a0/.pre-commit-config.yaml +16 -0
- jqmc-0.1.0a0/.vscode/settings.json +16 -0
- jqmc-0.1.0a0/CONTRIBUTING.md +80 -0
- jqmc-0.1.0a0/LICENSE +28 -0
- jqmc-0.1.0a0/PKG-INFO +155 -0
- jqmc-0.1.0a0/README.md +135 -0
- jqmc-0.1.0a0/__init__.py +0 -0
- jqmc-0.1.0a0/doc/Makefile +21 -0
- jqmc-0.1.0a0/doc/README.md +20 -0
- jqmc-0.1.0a0/doc/UML.pu +186 -0
- jqmc-0.1.0a0/doc/_static/logo_yoko2.jpg +0 -0
- jqmc-0.1.0a0/doc/changelog.md +7 -0
- jqmc-0.1.0a0/doc/citation.md +25 -0
- jqmc-0.1.0a0/doc/conf.py +267 -0
- jqmc-0.1.0a0/doc/examples.md +12 -0
- jqmc-0.1.0a0/doc/index.md +42 -0
- jqmc-0.1.0a0/doc/install.md +5 -0
- jqmc-0.1.0a0/doc/notes/ao.md +383 -0
- jqmc-0.1.0a0/doc/notes/atomic-forces.md +11 -0
- jqmc-0.1.0a0/doc/notes/jax.md +7 -0
- jqmc-0.1.0a0/doc/notes/lrdmc.md +7 -0
- jqmc-0.1.0a0/doc/notes/technical_notes.md +14 -0
- jqmc-0.1.0a0/doc/notes/trexio.md +7 -0
- jqmc-0.1.0a0/doc/notes/vmc.md +131 -0
- jqmc-0.1.0a0/doc/notes/vmcopt.md +7 -0
- jqmc-0.1.0a0/doc/reference.md +27 -0
- jqmc-0.1.0a0/doc/workflows.key +0 -0
- jqmc-0.1.0a0/examples/README.md +35 -0
- jqmc-0.1.0a0/examples/example01/01DFT/01pyscf-forge/run_pyscf.py +27 -0
- jqmc-0.1.0a0/examples/example01/01DFT/02cp2k/basis.cp2k +62 -0
- jqmc-0.1.0a0/examples/example01/01DFT/02cp2k/ecp.cp2k +20 -0
- jqmc-0.1.0a0/examples/example01/01DFT/02cp2k/water.xyz +5 -0
- jqmc-0.1.0a0/examples/example01/01DFT/02cp2k/water_ccecp_ccpvtz.inp +104 -0
- jqmc-0.1.0a0/examples/example01/03vmcopt_JSD/vmcopt.jpg +0 -0
- jqmc-0.1.0a0/examples/example01/03vmcopt_JSD/vmcopt.toml +26 -0
- jqmc-0.1.0a0/examples/example01/04vmc_JSD/vmc.toml +16 -0
- jqmc-0.1.0a0/examples/example01/05lrdmc_JSD/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example01/05lrdmc_JSD/lrdmc_ext.jpg +0 -0
- jqmc-0.1.0a0/examples/example01/README.md +499 -0
- jqmc-0.1.0a0/examples/example02/01water_jqmc/hamiltonian_data.chk +0 -0
- jqmc-0.1.0a0/examples/example02/01water_jqmc/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example02/01water_jqmc/vmc.toml +15 -0
- jqmc-0.1.0a0/examples/example02/02water_dimer_jqmc/hamiltonian_data.chk +0 -0
- jqmc-0.1.0a0/examples/example02/02water_dimer_jqmc/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example02/02water_dimer_jqmc/vmc.toml +15 -0
- jqmc-0.1.0a0/examples/example02/03benzene_jqmc/hamiltonian_data.chk +0 -0
- jqmc-0.1.0a0/examples/example02/03benzene_jqmc/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example02/03benzene_jqmc/vmc.toml +15 -0
- jqmc-0.1.0a0/examples/example02/04benzene_dimer_jqmc/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example02/04benzene_dimer_jqmc/vmc.toml +15 -0
- jqmc-0.1.0a0/examples/example02/README.md +44 -0
- jqmc-0.1.0a0/examples/example02/jqmc_LRDMC_vectorization_benchmark.jpg +0 -0
- jqmc-0.1.0a0/examples/example02/jqmc_VMC_vectorization_benchmark.jpg +0 -0
- jqmc-0.1.0a0/examples/example02/plot_summary.ipynb +478 -0
- jqmc-0.1.0a0/examples/example03/README.md +16 -0
- jqmc-0.1.0a0/examples/example03/jqmc_validation_water_methane.jpg +0 -0
- jqmc-0.1.0a0/examples/example03/plot_summary.ipynb +1181 -0
- jqmc-0.1.0a0/examples/example04/Ar_pGTOs_RHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/Ar_pGTOs_RHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/Ar_sGTOs_RHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/Ar_sGTOs_RHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/N_pGTOs_ROHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/N_pGTOs_ROHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/N_pGTOs_UHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/N_pGTOs_UHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/N_sGTOs_ROHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/N_sGTOs_ROHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/N_sGTOs_UHF/run_pyscf.py +25 -0
- jqmc-0.1.0a0/examples/example04/N_sGTOs_UHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/O2_pGTOs_ROHF/run_pyscf.py +26 -0
- jqmc-0.1.0a0/examples/example04/O2_pGTOs_ROHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/O2_pGTOs_UHF/run_pyscf.py +26 -0
- jqmc-0.1.0a0/examples/example04/O2_pGTOs_UHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/O2_sGTOs_ROHF/run_pyscf.py +26 -0
- jqmc-0.1.0a0/examples/example04/O2_sGTOs_ROHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/O2_sGTOs_UHF/run_pyscf.py +26 -0
- jqmc-0.1.0a0/examples/example04/O2_sGTOs_UHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/README.md +105 -0
- jqmc-0.1.0a0/examples/example04/water_pGTOs_RHF/run_pyscf.py +27 -0
- jqmc-0.1.0a0/examples/example04/water_pGTOs_RHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example04/water_sGTOs_RHF/run_pyscf.py +27 -0
- jqmc-0.1.0a0/examples/example04/water_sGTOs_RHF/vmc.toml +17 -0
- jqmc-0.1.0a0/examples/example05/H2/H2_PES_vmc.jpg +0 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/01trialWF_DFT/run_pyscf.py +28 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/03vmcopt_JSD/vmcopt.toml +26 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/04vmc_JSD/vmc.toml +18 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/05lrdmc_JSD/lrdmc.toml +20 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/07vmcopt_JAGP/vmcopt.toml +26 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/08vmc_JAGP/vmc.toml +18 -0
- jqmc-0.1.0a0/examples/example05/H2/R_0.74/09lrdmc_JAGP/lrdmc.toml +20 -0
- jqmc-0.1.0a0/examples/example05/H2/plot.ipynb +1318 -0
- jqmc-0.1.0a0/examples/example05/README.md +476 -0
- jqmc-0.1.0a0/examples/example06/03_S22_water_dimer/03vmcopt_JSD/vmcopt_JSD.jpg +0 -0
- jqmc-0.1.0a0/examples/example06/03_S22_water_dimer/07vmcopt_JAGP/vmcopt_JAGP.jpg +0 -0
- jqmc-0.1.0a0/examples/example06/README.md +507 -0
- jqmc-0.1.0a0/examples/example07/README.md +72 -0
- jqmc-0.1.0a0/examples/example07/jqmc_tau_nbra_comparison_benzene_on_gpu_leonardo.jpg +0 -0
- jqmc-0.1.0a0/examples/example07/jqmc_tau_nbra_comparison_benzene_on_gpu_miyabi.jpg +0 -0
- jqmc-0.1.0a0/examples/example07/jqmc_weak_scaling_benzene_on_gpu.jpg +0 -0
- jqmc-0.1.0a0/examples/example07/plot_summary.ipynb +596 -0
- jqmc-0.1.0a0/examples/example07/template/hamiltonian_data.chk +0 -0
- jqmc-0.1.0a0/examples/example07/template/lrdmc.toml +19 -0
- jqmc-0.1.0a0/examples/example07/template/lrdmc_tau.toml +18 -0
- jqmc-0.1.0a0/examples/example07/template/vmc.toml +15 -0
- jqmc-0.1.0a0/examples/example08/how_to_use_modules.ipynb +1687 -0
- jqmc-0.1.0a0/jqmc/__init__.py +0 -0
- jqmc-0.1.0a0/jqmc/_version.py +34 -0
- jqmc-0.1.0a0/jqmc/atomic_orbital.py +2635 -0
- jqmc-0.1.0a0/jqmc/coulomb_potential.py +2595 -0
- jqmc-0.1.0a0/jqmc/determinant.py +1641 -0
- jqmc-0.1.0a0/jqmc/function_collections.py +137 -0
- jqmc-0.1.0a0/jqmc/hamiltonians.py +282 -0
- jqmc-0.1.0a0/jqmc/header_footer.py +81 -0
- jqmc-0.1.0a0/jqmc/jastrow_factor.py +2138 -0
- jqmc-0.1.0a0/jqmc/jqmc_cli.py +668 -0
- jqmc-0.1.0a0/jqmc/jqmc_gfmc.py +6030 -0
- jqmc-0.1.0a0/jqmc/jqmc_mcmc.py +3667 -0
- jqmc-0.1.0a0/jqmc/jqmc_miscs.py +154 -0
- jqmc-0.1.0a0/jqmc/jqmc_tool.py +1327 -0
- jqmc-0.1.0a0/jqmc/jqmc_utility.py +481 -0
- jqmc-0.1.0a0/jqmc/molecular_orbital.py +530 -0
- jqmc-0.1.0a0/jqmc/obsolete/lrdmc_serial.py +1047 -0
- jqmc-0.1.0a0/jqmc/obsolete/lrdmc_vectorized.py +1072 -0
- jqmc-0.1.0a0/jqmc/obsolete/lrdmc_vectorized_fixed_projection_time.py +1220 -0
- jqmc-0.1.0a0/jqmc/obsolete/qmc_kernel.py +7027 -0
- jqmc-0.1.0a0/jqmc/obsolete/vmc_serial.py +1472 -0
- jqmc-0.1.0a0/jqmc/obsolete/vmc_vectorized.py +1976 -0
- jqmc-0.1.0a0/jqmc/setting.py +55 -0
- jqmc-0.1.0a0/jqmc/structure.py +587 -0
- jqmc-0.1.0a0/jqmc/swct.py +252 -0
- jqmc-0.1.0a0/jqmc/trexio_wrapper.py +766 -0
- jqmc-0.1.0a0/jqmc/wavefunction.py +991 -0
- jqmc-0.1.0a0/jqmc.egg-info/PKG-INFO +155 -0
- jqmc-0.1.0a0/jqmc.egg-info/SOURCES.txt +206 -0
- jqmc-0.1.0a0/jqmc.egg-info/dependency_links.txt +1 -0
- jqmc-0.1.0a0/jqmc.egg-info/entry_points.txt +3 -0
- jqmc-0.1.0a0/jqmc.egg-info/requires.txt +17 -0
- jqmc-0.1.0a0/jqmc.egg-info/top_level.txt +1 -0
- jqmc-0.1.0a0/logo/logo_tate.jpg +0 -0
- jqmc-0.1.0a0/logo/logo_yoko1.jpg +0 -0
- jqmc-0.1.0a0/logo/logo_yoko2.jpg +0 -0
- jqmc-0.1.0a0/prototypes/basis_set.py +1122 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_AOs.py +126 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_GTOs.py +96 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_MOs.py +83 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_comput_G_eq.py +118 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_coulomb.py +105 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_discretized_kinetic_part.py +261 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_geminal.py +155 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_kinetic_energy.py +66 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_local_energy.py +66 -0
- jqmc-0.1.0a0/prototypes/benchmark_jax_code_max_min.py +67 -0
- jqmc-0.1.0a0/prototypes/block_diagonal_matrix.py +66 -0
- jqmc-0.1.0a0/prototypes/check_tensor_board.py +7 -0
- jqmc-0.1.0a0/prototypes/ecp.py +768 -0
- jqmc-0.1.0a0/prototypes/hamiltonian_data.chk +0 -0
- jqmc-0.1.0a0/prototypes/hamiltonian_data_water.chk +0 -0
- jqmc-0.1.0a0/prototypes/jax_vmap.py +39 -0
- jqmc-0.1.0a0/prototypes/pseudo_jax_code_1.py +100 -0
- jqmc-0.1.0a0/prototypes/pseudo_jax_code_2.py +358 -0
- jqmc-0.1.0a0/prototypes/vmc_vmap.py +225 -0
- jqmc-0.1.0a0/prototypes/water_ccpvtz_trexio.hdf5 +0 -0
- jqmc-0.1.0a0/pyproject.toml +23 -0
- jqmc-0.1.0a0/setup.cfg +51 -0
- jqmc-0.1.0a0/setup.py +6 -0
- jqmc-0.1.0a0/tests/__init__.py +0 -0
- jqmc-0.1.0a0/tests/conftest.py +39 -0
- jqmc-0.1.0a0/tests/test_AOs.py +663 -0
- jqmc-0.1.0a0/tests/test_MOs.py +421 -0
- jqmc-0.1.0a0/tests/test_comparison_with_turborvb_AE.py +239 -0
- jqmc-0.1.0a0/tests/test_comparison_with_turborvb_ECP.py +872 -0
- jqmc-0.1.0a0/tests/test_determinant.py +442 -0
- jqmc-0.1.0a0/tests/test_ecps.py +672 -0
- jqmc-0.1.0a0/tests/test_jastrow.py +547 -0
- jqmc-0.1.0a0/tests/test_jqmc_command_lines.py +272 -0
- jqmc-0.1.0a0/tests/test_jqmc_gfmc_bra.py +186 -0
- jqmc-0.1.0a0/tests/test_jqmc_gfmc_tau.py +168 -0
- jqmc-0.1.0a0/tests/test_jqmc_mcmc.py +172 -0
- jqmc-0.1.0a0/tests/test_lrdmc_force.py +212 -0
- jqmc-0.1.0a0/tests/test_swct.py +104 -0
- jqmc-0.1.0a0/tests/test_trexio.py +78 -0
- jqmc-0.1.0a0/tests/test_vmc_force.py +188 -0
- jqmc-0.1.0a0/tests/test_wave_function.py +251 -0
- jqmc-0.1.0a0/tests/trexio_example_files/H2_ae_ccpvqz.h5 +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/H2_ae_ccpvtz_cart.h5 +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/H2_ecp_ccpvtz.h5 +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/H2_ecp_ccpvtz_cart.h5 +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/H_ecp_ccpvqz.h5 +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/jastrow_data_w_1b_2b_1b3b_ae.pkl +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/jastrow_data_w_2b_1b3b_w_ecp.pkl +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/jastrow_data_w_2b_3b_w_ecp.pkl +0 -0
- jqmc-0.1.0a0/tests/trexio_example_files/read_jastrow_factor_from_turbo_wf.py +214 -0
- jqmc-0.1.0a0/tests/trexio_example_files/turborvb_WF_w_1b_2b_1b3b_ae.txt +130 -0
- jqmc-0.1.0a0/tests/trexio_example_files/turborvb_WF_w_2b_1b3b_w_ecp.txt +908 -0
- jqmc-0.1.0a0/tests/trexio_example_files/turborvb_WF_w_2b_3b_w_ecp.txt +908 -0
- jqmc-0.1.0a0/tests/trexio_example_files/water_ccecp_ccpvqz.h5 +0 -0
- jqmc-0.1.0a0/tools/_read_from_turbo_wf_and_ecp.py +266 -0
- jqmc-0.1.0a0/tools/read_Jastrow_factor_from_turbo_wf.py +174 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# base image
|
|
2
|
+
FROM ubuntu:22.04
|
|
3
|
+
|
|
4
|
+
# installing fundamental packages
|
|
5
|
+
RUN apt-get update && apt-get install -y \
|
|
6
|
+
vim \
|
|
7
|
+
build-essential \
|
|
8
|
+
cmake \
|
|
9
|
+
gfortran \
|
|
10
|
+
python3 \
|
|
11
|
+
python3-pip \
|
|
12
|
+
python3-venv \
|
|
13
|
+
mpich \
|
|
14
|
+
git \
|
|
15
|
+
&& apt-get clean \
|
|
16
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
17
|
+
|
|
18
|
+
# Python setting
|
|
19
|
+
RUN python3 -m pip install --upgrade pip
|
|
20
|
+
|
|
21
|
+
# setting a user
|
|
22
|
+
ARG USERNAME=kosuke
|
|
23
|
+
ARG USER_UID=1000
|
|
24
|
+
ARG USER_GID=$USER_UID
|
|
25
|
+
|
|
26
|
+
# creating the user
|
|
27
|
+
RUN groupadd --gid $USER_GID $USERNAME \
|
|
28
|
+
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME
|
|
29
|
+
|
|
30
|
+
# switch to the created user
|
|
31
|
+
USER $USERNAME
|
|
32
|
+
|
|
33
|
+
# ADD a path for local pip installations
|
|
34
|
+
RUN echo "export PATH=$PATH:/home/$USERNAME/.local/bin" >> ~/.bashrc
|
|
35
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Python MPI Environment",
|
|
3
|
+
"dockerFile": "Dockerfile",
|
|
4
|
+
"context": ".",
|
|
5
|
+
"customizations": {
|
|
6
|
+
"vscode": {
|
|
7
|
+
"settings": {
|
|
8
|
+
"terminal.integrated.defaultProfile.linux": "bash",
|
|
9
|
+
"editor.formatOnSave": true
|
|
10
|
+
},
|
|
11
|
+
"extensions": [
|
|
12
|
+
"ms-python.python",
|
|
13
|
+
"ms-vscode.cpptools",
|
|
14
|
+
"twxs.cmake"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"forwardPorts": [
|
|
19
|
+
8888
|
|
20
|
+
],
|
|
21
|
+
"remoteUser": "kosuke",
|
|
22
|
+
"postCreateCommand": "pip install -e ."
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: publish jqmc gh-pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [rc-gh-pages]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
docs:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
defaults:
|
|
11
|
+
run:
|
|
12
|
+
shell: bash -l {0}
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- uses: conda-incubator/setup-miniconda@v2
|
|
17
|
+
with:
|
|
18
|
+
auto-update-conda: true
|
|
19
|
+
channels: conda-forge
|
|
20
|
+
channel-priority: strict
|
|
21
|
+
python-version: 3.11
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: |
|
|
24
|
+
conda activate rc-gh-pages
|
|
25
|
+
conda install --yes -c conda-forge python=3.11
|
|
26
|
+
conda install --yes -c conda-forge sphinx-book-theme linkify-it-py myst-parser sphinxcontrib-bibtex ipython
|
|
27
|
+
- name: Build
|
|
28
|
+
run: |
|
|
29
|
+
conda activate rc-gh-pages
|
|
30
|
+
sphinx-apidoc -o doc/ jqmc/
|
|
31
|
+
sphinx-build doc docs_build
|
|
32
|
+
|
|
33
|
+
- name: Deploy docs at develop branch
|
|
34
|
+
if: ${{ github.ref == 'refs/heads/rc-gh-pages' }}
|
|
35
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
36
|
+
with:
|
|
37
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
publish_dir: ./docs_build
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Publish jQMC distributions to test-PyPI
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [ "rc" ]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
deploy-test-pypi:
|
|
8
|
+
if: github.repository == 'kousuke-nakano/jQMC'
|
|
9
|
+
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
- name: Set up Python 3.11
|
|
22
|
+
uses: actions/setup-python@v3
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.11'
|
|
25
|
+
|
|
26
|
+
- name: Install pypa/build
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install setuptools setuptools_scm wheel
|
|
30
|
+
python setup.py sdist bdist_wheel
|
|
31
|
+
|
|
32
|
+
- name: Publish distribution to Test PyPI
|
|
33
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
34
|
+
with:
|
|
35
|
+
user: __token__
|
|
36
|
+
password: ${{ secrets.TEST_PYPI_JQMC_TOKEN }}
|
|
37
|
+
repository-url: https://test.pypi.org/legacy/
|
|
38
|
+
verbose: true
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: Publish jQMC distributions to PyPI
|
|
2
|
+
|
|
3
|
+
# Trigger only when tags that start with "v" are pushed (e.g., v0.1.0)
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v*'
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
# validate tag
|
|
11
|
+
validate_tag:
|
|
12
|
+
# Run only if this repository is rc
|
|
13
|
+
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'kousuke-nakano/jQMC'
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
# Check out the repository
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
# Set up Python to run the validator
|
|
22
|
+
- name: Set up Python
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.11'
|
|
26
|
+
|
|
27
|
+
# Install dependencies for version validation
|
|
28
|
+
- name: Install validator deps
|
|
29
|
+
run: python -m pip install --upgrade pip packaging
|
|
30
|
+
|
|
31
|
+
- name: tag must be on rc
|
|
32
|
+
shell: bash
|
|
33
|
+
run: |
|
|
34
|
+
git fetch origin rc
|
|
35
|
+
if git merge-base --is-ancestor "$GITHUB_SHA" origin/rc; then
|
|
36
|
+
echo "Tag is on rc."
|
|
37
|
+
else
|
|
38
|
+
echo "Tag is not on rc."
|
|
39
|
+
exit 1
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
# Extract TAG and strip the leading "v" for PEP 440 validation
|
|
43
|
+
- name: Extract TAG and VERSION
|
|
44
|
+
shell: bash
|
|
45
|
+
run: |
|
|
46
|
+
TAG="${GITHUB_REF_NAME:-$(git describe --tags --abbrev=0 || true)}"
|
|
47
|
+
if [ -z "$TAG" ]; then
|
|
48
|
+
echo "This run is not on a tag. Aborting."
|
|
49
|
+
exit 1
|
|
50
|
+
fi
|
|
51
|
+
if [[ ! "$TAG" =~ ^v[^.] ]]; then
|
|
52
|
+
echo "Tag must start with 'v' and not 'v.' (got: $TAG)"
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
echo "TAG=$TAG" >> $GITHUB_ENV
|
|
56
|
+
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
|
|
57
|
+
|
|
58
|
+
# Validate against PEP 440 and enforce canonical form (e.g., v1.0rc1 not v1.0RC1)
|
|
59
|
+
- name: Validate tag against PEP 440 (canonical)
|
|
60
|
+
run: |
|
|
61
|
+
python - <<'PY'
|
|
62
|
+
import os, sys
|
|
63
|
+
from packaging.version import Version, InvalidVersion
|
|
64
|
+
|
|
65
|
+
tag = os.environ["TAG"]
|
|
66
|
+
ver = os.environ["VERSION"]
|
|
67
|
+
|
|
68
|
+
try:
|
|
69
|
+
parsed = Version(ver)
|
|
70
|
+
except InvalidVersion as e:
|
|
71
|
+
print(f"Invalid PEP 440 version in tag '{tag}': {e}")
|
|
72
|
+
sys.exit(1)
|
|
73
|
+
|
|
74
|
+
canonical = 'v' + parsed.public
|
|
75
|
+
if tag != canonical:
|
|
76
|
+
print(f"Tag '{tag}' is valid but not canonical. Expected '{canonical}'.")
|
|
77
|
+
sys.exit(1)
|
|
78
|
+
|
|
79
|
+
print(f"Tag '{tag}' OK (PEP 440 canonical).")
|
|
80
|
+
PY
|
|
81
|
+
|
|
82
|
+
# deploy
|
|
83
|
+
deploy-pypi:
|
|
84
|
+
# Run only if this repository is rc
|
|
85
|
+
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'kousuke-nakano/jQMC'
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
steps:
|
|
88
|
+
- uses: actions/checkout@v3
|
|
89
|
+
with:
|
|
90
|
+
fetch-depth: 0
|
|
91
|
+
|
|
92
|
+
- name: Set up Python 3.11
|
|
93
|
+
uses: actions/setup-python@v3
|
|
94
|
+
with:
|
|
95
|
+
python-version: '3.11'
|
|
96
|
+
|
|
97
|
+
- name: Install pypa/build
|
|
98
|
+
run: |
|
|
99
|
+
python -m pip install --upgrade pip
|
|
100
|
+
python -m pip install setuptools setuptools_scm wheel
|
|
101
|
+
python setup.py sdist bdist_wheel
|
|
102
|
+
|
|
103
|
+
- name: Publish distribution to PyPI
|
|
104
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
105
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
106
|
+
with:
|
|
107
|
+
user: __token__
|
|
108
|
+
password: ${{ secrets.PYPI_JQMC_TOKEN }}
|
|
109
|
+
verbose: true
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# A full test of jqmc.
|
|
2
|
+
|
|
3
|
+
name: jqmc full test
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [ "main", "rc" ]
|
|
8
|
+
paths-ignore:
|
|
9
|
+
- '.gitignore'
|
|
10
|
+
- '.github/**'
|
|
11
|
+
- 'doc/**'
|
|
12
|
+
- 'examples/**'
|
|
13
|
+
- 'README.md'
|
|
14
|
+
pull_request:
|
|
15
|
+
branches: [ "main", "rc" ]
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
run:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Install gfortran and gcc
|
|
27
|
+
run: |
|
|
28
|
+
sudo apt-get update
|
|
29
|
+
sudo apt-get install gfortran
|
|
30
|
+
|
|
31
|
+
- name: Install OpenBLAS and LAPACK
|
|
32
|
+
run: sudo apt-get install libopenblas-dev liblapack-dev
|
|
33
|
+
|
|
34
|
+
- name: Install OpenMPI
|
|
35
|
+
run: sudo apt-get install openmpi-bin libopenmpi-dev
|
|
36
|
+
|
|
37
|
+
- uses: actions/checkout@v3
|
|
38
|
+
|
|
39
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
40
|
+
uses: actions/setup-python@v3
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
|
|
44
|
+
- name: Install jqmc
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install flake8 pytest pytest-cov
|
|
47
|
+
python -m pip install .
|
|
48
|
+
|
|
49
|
+
#- name: Lint jqmc with flake8
|
|
50
|
+
# run: |
|
|
51
|
+
# # stop the build if there are Python syntax errors or undefined names
|
|
52
|
+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
53
|
+
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
54
|
+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
55
|
+
|
|
56
|
+
- name: Test jqmc (pytest) with @jit decorator (intra-software comparisons)
|
|
57
|
+
run: |
|
|
58
|
+
pytest -s -v tests/test_trexio.py --cov=jqmc --cov-branch --no-cov-on-fail
|
|
59
|
+
pytest -s -v tests/test_AOs.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
60
|
+
pytest -s -v tests/test_MOs.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
61
|
+
pytest -s -v tests/test_determinant.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
62
|
+
pytest -s -v tests/test_jastrow.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
63
|
+
pytest -s -v tests/test_wave_function.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
64
|
+
pytest -s -v tests/test_ecps.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
65
|
+
pytest -s -v tests/test_swct.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
66
|
+
pytest -s -v tests/test_vmc_force.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
67
|
+
pytest -s -v tests/test_lrdmc_force.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
68
|
+
|
|
69
|
+
- name: Test jqmc (pytest) with @jit decorator (inter-software comparisons)
|
|
70
|
+
run: |
|
|
71
|
+
pytest -s -v tests/test_comparison_with_turborvb_ECP.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
72
|
+
pytest -s -v tests/test_comparison_with_turborvb_AE.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
73
|
+
|
|
74
|
+
- name: Test jqmc (pytest) QMC kernels without MPI
|
|
75
|
+
run: |
|
|
76
|
+
pytest -s -v tests/test_jqmc_command_lines.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
77
|
+
pytest -s -v tests/test_jqmc_mcmc.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
78
|
+
pytest -s -v tests/test_jqmc_gfmc_tau.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
79
|
+
pytest -s -v tests/test_jqmc_gfmc_bra.py --cov=jqmc --cov-branch --no-cov-on-fail --cov-append
|
|
80
|
+
|
|
81
|
+
#- name: Test jqmc (pytest) QMC kernels with MPI (2 cores)
|
|
82
|
+
# run: |
|
|
83
|
+
# mpirun -np 2 pytest -s -v tests/test_jqmc_mcmc.py
|
|
84
|
+
# mpirun -np 2 pytest -s -v tests/test_jqmc_gfmc_tau.py
|
|
85
|
+
# mpirun -np 2 pytest -s -v tests/test_jqmc_gfmc_bra.py
|
|
86
|
+
|
|
87
|
+
- name: Combine Codecov xml files
|
|
88
|
+
run: |
|
|
89
|
+
coverage xml -o coverage.xml
|
|
90
|
+
|
|
91
|
+
- name: Upload coverage reports to Codecov
|
|
92
|
+
if: matrix.python-version == '3.12'
|
|
93
|
+
uses: codecov/codecov-action@v5
|
|
94
|
+
with:
|
|
95
|
+
files: coverage.xml
|
|
96
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# A short test jqmc.
|
|
2
|
+
|
|
3
|
+
name: jqmc short test
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [ "devel" ]
|
|
8
|
+
paths-ignore:
|
|
9
|
+
- '.gitignore'
|
|
10
|
+
- '.github/**'
|
|
11
|
+
- 'doc/**'
|
|
12
|
+
- 'examples/**'
|
|
13
|
+
- 'README.md'
|
|
14
|
+
pull_request:
|
|
15
|
+
branches: [ "devel" ]
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
run:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Install gfortran and gcc
|
|
27
|
+
run: |
|
|
28
|
+
sudo apt-get update
|
|
29
|
+
sudo apt-get install gfortran
|
|
30
|
+
|
|
31
|
+
- name: Install OpenBLAS and LAPACK
|
|
32
|
+
run: sudo apt-get install libopenblas-dev liblapack-dev
|
|
33
|
+
|
|
34
|
+
- name: Install OpenMPI
|
|
35
|
+
run: sudo apt-get install openmpi-bin libopenmpi-dev
|
|
36
|
+
|
|
37
|
+
- uses: actions/checkout@v3
|
|
38
|
+
|
|
39
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
40
|
+
uses: actions/setup-python@v3
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
|
|
44
|
+
- name: Install jqmc
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install flake8 pytest pytest-cov
|
|
47
|
+
python -m pip install .
|
|
48
|
+
|
|
49
|
+
#- name: Lint jqmc with flake8
|
|
50
|
+
# run: |
|
|
51
|
+
# # stop the build if there are Python syntax errors or undefined names
|
|
52
|
+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
53
|
+
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
54
|
+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
55
|
+
|
|
56
|
+
- name: Test jqmc (pytest) with @jit decorator (intra-software comparisons)
|
|
57
|
+
run: |
|
|
58
|
+
pytest -s -v tests/test_trexio.py
|
|
59
|
+
pytest -s -v tests/test_AOs.py
|
|
60
|
+
pytest -s -v tests/test_MOs.py
|
|
61
|
+
pytest -s -v tests/test_determinant.py
|
|
62
|
+
pytest -s -v tests/test_jastrow.py
|
|
63
|
+
pytest -s -v tests/test_wave_function.py
|
|
64
|
+
pytest -s -v tests/test_ecps.py
|
|
65
|
+
pytest -s -v tests/test_swct.py
|
|
66
|
+
pytest -s -v tests/test_vmc_force.py
|
|
67
|
+
pytest -s -v tests/test_lrdmc_force.py
|
|
68
|
+
|
|
69
|
+
- name: Test jqmc (pytest) with @jit decorator (inter-software comparisons)
|
|
70
|
+
run: |
|
|
71
|
+
pytest -s -v tests/test_comparison_with_turborvb_ECP.py
|
|
72
|
+
pytest -s -v tests/test_comparison_with_turborvb_AE.py
|
|
73
|
+
|
|
74
|
+
- name: Test jqmc (pytest) QMC kernels without MPI
|
|
75
|
+
run: |
|
|
76
|
+
pytest -s -v tests/test_jqmc_mcmc.py
|
|
77
|
+
pytest -s -v tests/test_jqmc_gfmc_tau.py
|
|
78
|
+
pytest -s -v tests/test_jqmc_gfmc_bra.py
|
jqmc-0.1.0a0/.gitignore
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
|
161
|
+
|
|
162
|
+
# mac
|
|
163
|
+
.DS_Store
|
|
164
|
+
|
|
165
|
+
# jqmc
|
|
166
|
+
_version.py
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# See https://pre-commit.com for more informatio
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v4.6.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- id: end-of-file-fixer
|
|
9
|
+
- id: check-added-large-files
|
|
10
|
+
|
|
11
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
|
+
rev: v0.6.5
|
|
13
|
+
hooks:
|
|
14
|
+
#- id: ruff
|
|
15
|
+
# args: [ "--fix", "--show-fixes" ]
|
|
16
|
+
- id: ruff-format
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[python]": {
|
|
3
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.organizeImports": "explicit"
|
|
6
|
+
}
|
|
7
|
+
},
|
|
8
|
+
"ruff.lineLength": 128,
|
|
9
|
+
"ruff.lint.ignore": [
|
|
10
|
+
"I001",
|
|
11
|
+
"B008",
|
|
12
|
+
"E501",
|
|
13
|
+
"E741"
|
|
14
|
+
],
|
|
15
|
+
"editor.formatOnSave": true,
|
|
16
|
+
}
|