Skip to content

Commit

Permalink
chore: Update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Jul 24, 2024
1 parent 7deea56 commit 142498f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion hrc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
self._raw_config_dict = {}
self._rule_tasks = set()
self._handle_event_tasks = set()

self._extend_rules = []
self._extend_rule_dirs = []
self._core_run_hooks = []
Expand Down
18 changes: 8 additions & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@


@nox.session
def test(session: nox.Session):
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.install(".[dev]")
session.run("pytest")
def test(python='.venv/Scripts/python.exe', reuse_venv=True):
nox.session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
nox.session.install(".[dev]")
nox.session.run("pytest")


@nox.session
def bench(session: nox.Session):
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.install(".[dev]")
session.run("pytest", "--benchmark-enable")


def bench(python='.venv/Scripts/python.exe', reuse_venv=True):
nox.session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
nox.session.install(".[dev]")
nox.session.run("pytest", "--benchmark-enable")
10 changes: 4 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use clap::builder::FalseyValueParser;
use pyo3::exceptions;
use pyo3::prelude::*;
use pyo3::wrap_pyfunction;

Expand All @@ -11,10 +9,10 @@ fn process_rule_pack(rule_pack: &str) -> PyResult<String> {
#[pymodule]
#[pyo3(name = "LibCore")]
fn libcore(_py: Python, m: &PyModule) -> PyResult<()> {
let py_log = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/log.py"));
let py_event = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/event.py"));
let py_core = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/core.py"));
let py_const = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/const.py"));
let _py_hrc_log = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/log.py"));
let _py_hrc_event = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/event.py"));
let _py_hrc_core = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/core.py"));
let _py_hrc_const = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/hrc/const.py"));

m.add_function(wrap_pyfunction!(process_rule_pack, m)?)?;
Ok(())
Expand Down

0 comments on commit 142498f

Please sign in to comment.