-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement security best practices (#29)
* Implement community guidelines (#27) * Add Ruff linting * Add scorecard report generation * Implement security best practices
- Loading branch information
Showing
9 changed files
with
141 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Contributing | ||
|
||
See [README.md](../README.md) file. | ||
### Pull requests | ||
|
||
To propose a feature or a bug fix, please create [pull request](https://github.com/makukha/caseutil/pulls). | ||
|
||
Every pull request must ensure preserving 100% code coverage with tests. | ||
|
||
|
||
### Coding style | ||
|
||
This project uses [Black](https://black.readthedocs.io) coding style. | ||
|
||
|
||
### Developing | ||
|
||
For details on development environment setup, see [README.md](../README.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".git", | ||
".pdm-build", | ||
".tox", | ||
".venv", | ||
"dist", | ||
"tmp", | ||
] | ||
# Same as Black. | ||
line-length = 88 | ||
indent-width = 4 | ||
# Assume Python 3.12 | ||
target-version = "py312" | ||
|
||
|
||
[lint] | ||
|
||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or | ||
# McCabe complexity (`C901`) by default. | ||
select = ["E4", "E7", "E9", "F", "S"] | ||
ignore = [] | ||
# Allow fix for all enabled rules (when `--fix`) is provided. | ||
fixable = ["ALL"] | ||
unfixable = [] | ||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
|
||
[format] | ||
|
||
quote-style = "single" | ||
indent-style = "space" | ||
skip-magic-trailing-comma = false | ||
line-ending = "auto" | ||
docstring-code-format = true | ||
docstring-code-line-length = "dynamic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# dev core | ||
brew "keyring" | ||
brew "pdm" | ||
brew "pyenv" | ||
brew "ruff" | ||
brew "scorecard" | ||
brew "tox" | ||
|
||
# pyenv deps not covered by formula | ||
brew "zlib" | ||
|
||
# dev ux | ||
cask "alacritty" | ||
cask "font-jetbrains-mono-nerd-font" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters