diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2214e32 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf +*.vbs text eol=crlf diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac2bce3..b000a4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,19 +6,24 @@ on: pull_request: branches: [master] +permissions: + contents: read + jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + persist-credentials: false - name: Set up Python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 with: python-version: "3.12" - - name: Install ruff - run: pip install ruff + - name: Install dependencies + run: pip install -e ".[dev]" - name: Run ruff check run: ruff check . @@ -32,6 +37,8 @@ jobs: steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + persist-credentials: false - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 37db1c4..dccaf94 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + persist-credentials: false - name: Set up Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ce1054b..e64318a 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -19,6 +19,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + persist-credentials: false - name: Setup Pages uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b - name: Build with Jekyll diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e34b422..de19f7b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,6 +22,8 @@ jobs: steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + with: + persist-credentials: false - name: Set up Python 3.12 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 diff --git a/pyproject.toml b/pyproject.toml index bcca0da..3fa0d39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,6 @@ readme = "README.md" requires-python = ">=3.10" license = "MIT" authors = [{name = "Revenue Holdings"}] -urls = {Homepage = "https://github.com/Coding-Dev-Tools/datamorph", Repository = "https://github.com/Coding-Dev-Tools/datamorph"} keywords = ["data-converter", "csv", "json", "yaml", "parquet", "avro", "etl", "cli"] classifiers = [ "Development Status :: 4 - Beta", @@ -32,10 +31,18 @@ dependencies = [ "fastavro>=1.12.2", ] +[project.urls] +Homepage = "https://github.com/Coding-Dev-Tools/datamorph" +Documentation = "https://coding-dev-tools.github.io/datamorph/" +Repository = "https://github.com/Coding-Dev-Tools/datamorph" +Issues = "https://github.com/Coding-Dev-Tools/datamorph/issues" +Changelog = "https://github.com/Coding-Dev-Tools/datamorph/releases" + [project.optional-dependencies] dev = [ "pytest>=9.0.3", "pytest-cov>=7.1.0", + "ruff>=0.4.0", ] full = [ "protobuf>=7.34.1", @@ -56,4 +63,4 @@ select = ["E", "F", "W", "I"] [tool.pytest.ini_options] testpaths = ["tests"] -python_files = ["test_*.py"] \ No newline at end of file +python_files = ["test_*.py"]