GitHub – creativecommons/quantifying: quantify the size and diversity of the commons–the collection of works that are openly licensed or in the public domain
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Creative Commons team is committed to fostering a welcoming community.
This project and all other Creative Commons open source projects are governed
by our Code of Conduct. Please report unacceptable
behavior to conduct@creativecommons.org
per our reporting guidelines.
Please note that in the directory tree below, all instances of fetch,
process, and report are referring to the three phases of data gathering,
processing, and report generation.
Quantifying/
├── .github/
│ ├── workflows/
│ │ ├── fetch.yml
│ │ ├── process.yml
│ │ ├── report.yml
│ │ └── static_analysis.yml
├── data/ # Data generated by script runs
│ ├── 20XXQX/
│ │ ├── 1-fetch/
│ │ ├── 2-process/
│ │ ├── 3-report/
│ │ │ └── README.md # All generated reports are displayed in the README
│ └── ...
├── dev/
├── pre-automation/ # All Quantifying work prior to adding automation system
├── scripts/ # Run scripts for all phases
│ ├── 1-fetch/
│ ├── 2-process/
│ ├── 3-report/
│ └── shared.py
├── .cc-metadata.yml
├── .flake8 # Python tool configuration
├── .gitignore
├── .pre-commit-config.yaml # Static analysis configuration
├── LICENSE
├── Pipfile # Specifies the project's dependencies and Python version
├── Pipfile.lock
├── README.md
├── env.example
├── history.md
├── pyproject.toml # Python tools configuration
└── sources.md
You should now be able to run scripts that require client credentials
without any issues.
Static analysis
Static analysis tools ensure the codebase adheres to consistent formatting and
style guidelines, enhancing readability and maintainability. Also see GitHub
Actions, below.
(It doesn’t import any libraries, it only sorts and formats them.)
ppypa/pipenv: Python Development Workflow for Humans.
pre-commit: A framework for managing and maintaining
multi-language pre-commit hooks.
Logging: Utilize the built-in Python logging module to implement a flexible logging system from a shared module.
GitHub Actions
The .github/workflows/python_static_analysis.yml
GitHub Actions workflow performs static analysis (black, flake8, and
isort) on committed changes. The workflow is triggered automatically when you
push changes to the main branch or open a pull request.