csv-validation 0.0.15__tar.gz → 0.0.16__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.
@@ -98,7 +98,7 @@ jobs:
98
98
  - uses: actions/checkout@v4
99
99
  - uses: actions/setup-python@v5
100
100
  with:
101
- python-version: 3.x
101
+ python-version: '3.13'
102
102
  architecture: ${{ matrix.platform.target }}
103
103
  - name: Build wheels
104
104
  uses: PyO3/maturin-action@v1
@@ -83,7 +83,7 @@ dependencies = [
83
83
 
84
84
  [[package]]
85
85
  name = "csv_validation"
86
- version = "0.0.15"
86
+ version = "0.0.16"
87
87
  dependencies = [
88
88
  "csv",
89
89
  "flate2",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "csv_validation"
3
- version = "0.0.15"
3
+ version = "0.0.16"
4
4
  edition = "2021"
5
5
  readme = "README.md"
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csv_validation
3
- Version: 0.0.15
3
+ Version: 0.0.16
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -94,11 +94,15 @@ columns:
94
94
  - Available formats:
95
95
  - `integer`: Validates any integer number (positive or negative)
96
96
  - `positive integer`: Validates positive integer numbers
97
- - `decimal/decimal point`: Validates any decimal number (positive or negative) using point as decimal separator
97
+ - `negative integer`: Validates negative integer numbers
98
+ - `decimal`/`decimal point`: Validates any decimal number (positive or negative) using point as decimal separator
99
+ - `negative decimal point`: Validates negative decimal numbers using point as decimal separator
98
100
  - `decimal comma`: Validates decimal numbers using comma as decimal separator
99
- - `positive decimal point/positive decimal`: Validates positive decimal numbers using point as decimal separator
101
+ - `positive decimal`/`positive decimal point`: Validates positive decimal numbers using point as decimal separator
100
102
  - `positive decimal comma`: Validates positive decimal numbers using comma as decimal separator
101
103
  - `decimal scientific`: Validates decimal numbers in scientific notation (e.g. 23.02e-12)
104
+ - `decimal scientific comma`: Validates decimal numbers in scientific notation using comma as decimal separator
105
+ - `positive decimal scientific`: Validates positive decimal numbers in scientific notation
102
106
  - More formats will be added in upcoming versions
103
107
 
104
108
  3. **Minimum Value** (`min`)
@@ -289,6 +289,8 @@ fn get_regex_for_format(format: &str) -> PyResult<String> {
289
289
  "positive decimal point" | "positive decimal" => Ok(String::from("^$|^\\d+(\\.\\d+)?$")),
290
290
  "positive decimal comma" => Ok(String::from("^$|^\\d+(,\\d+)?$")),
291
291
  "decimal scientific" => Ok(String::from("^$|^-?\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
292
+ "decimal scientific comma" => Ok(String::from("^$|^-?\\d+(\\,\\d+)?([eE][-+]?\\d+)?$")),
293
+ "positive decimal scientific" => Ok(String::from("^$|^\\d+(\\.\\d+)?([eE][-+]?\\d+)?$")),
292
294
  _ => Err(PyRuntimeError::new_err(format!("Unknown format: {format}")))
293
295
  }
294
296
  }
File without changes