Skip to content

Commit bbbeba6

Browse files
Sid MohanSid Mohan
authored andcommitted
v3.2.0
0 parents  commit bbbeba6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5532
-0
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: no

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503
3+
max-line-length = 80
4+
max-complexity = 18
5+
select = B,C,E,F,W,T4,B9

.github/renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["config:base"]
3+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: dev-cicd-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
branches:
9+
- dev
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repo
16+
uses: actions/checkout@v3
17+
- name: Run pre-commit
18+
uses: pre-commit/action@v3.0.1
19+
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python-version: ["3.10", "3.11"]
25+
steps:
26+
- uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- uses: actions/checkout@v3
30+
- name: Test with tox
31+
run: |
32+
pip install tox
33+
tox -- --cov datafog --cov-report xml --cov-report term
34+
- name: Submit to codecov
35+
uses: codecov/codecov-action@v3
36+
if: ${{ matrix.python-version == '3.11' }}
37+
38+
- name: Upload coverage reports to Codecov
39+
uses: codecov/codecov-action@v4.0.1
40+
env:
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
slug: DataFog/datafog-python
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: main-cicd-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repo
16+
uses: actions/checkout@v3
17+
- name: Run pre-commit
18+
uses: pre-commit/action@v3.0.0
19+
20+
build:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python-version: ["3.10", "3.11"]
25+
steps:
26+
- uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- uses: actions/checkout@v3
30+
- name: Test with tox
31+
run: |
32+
pip install tox
33+
tox -- --cov datafog --cov-report xml --cov-report term
34+
- name: Submit to codecov
35+
uses: codecov/codecov-action@v3
36+
if: ${{ matrix.python-version == '3.11' }}
37+
38+
- name: Upload coverage reports to Codecov
39+
uses: codecov/codecov-action@v4.0.1
40+
env:
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
slug: DataFog/datafog-python

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.pyc
2+
*.swp
3+
*.prof
4+
MANIFEST
5+
dist/
6+
build/
7+
.coverage
8+
.cache/
9+
*.egg-info/
10+
.pytest_cache/
11+
.tox/
12+
/src/datafog/__pycache__/
13+
/src/datafog/pii_tools/__pycache__/
14+
/tests/__pycache__/
15+
/tests/scratch.py
16+
node_modules/
17+
datafog_debug.log
18+
sotu_2023.txt
19+
.DS_Store
20+
/venv/
21+
datafog-python/datafog/processing/image_processing/__pycache__/
22+
datafog-python/datafog/processing/text_processing/__pycache__/
23+
datafog-python/datafog/services/__pycache__/
24+
datafog-python/datafog/processing/__pycache__/
25+
datafog-python/datafog/__pycache__/
26+

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/isort
3+
rev: 5.12.0
4+
hooks:
5+
- id: isort
6+
args: [--profile=black]
7+
8+
- repo: https://github.com/psf/black
9+
rev: 24.2.0
10+
hooks:
11+
- id: black
12+
language_version: python3
13+
14+
- repo: https://github.com/pycqa/flake8
15+
rev: 7.0.0
16+
hooks:
17+
- id: flake8
18+
19+
- repo: https://github.com/pre-commit/mirrors-prettier
20+
rev: v4.0.0-alpha.8
21+
hooks:
22+
- id: prettier

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/files/*

CHANGELOG.MD

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ChangeLog
2+
3+
## [2024-03-25]
4+
5+
### `datafog-python` [2.3.2]
6+
7+
- Added datafog-python/examples/uploading-file-types.ipynb to show JSON uploading example (#16)
8+
- Added datafog-python/tests/regex_issue.py to show issue with regex recognizer creation
9+
- Moved versioning to separate invocable function in setup.py

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# datafog Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct/
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq/

0 commit comments

Comments
 (0)