Ville Skyttä

Results 245 issues of Ville Skyttä

Unix timestamps are always from UTC epoch, and calculation from given `time.Time` is independent of its location.

See individual commits for details.

### How would this feature be useful? I'm unable to find documentation on which old Python version sessions nox intends to support. https://github.com/wntrblm/nox/issues/525#issuecomment-1000337239 says > And to be clear, this...

enhancement

Nice to see a Dockerfile being added. However, it's customary to ship Dockerfiles at project top level, and some software actually depends on things being set up that way, and...

Enhancement

All 3rd party policies are not necessarily unsafe. Remove a stray `-`.

```perl if (scalar(grep { $_ } qw(a b c)) > 2) { die; } ``` ...yields with 1.150 > "grep" used in boolean context. See pages 71,72 of PBP. There's...

Some of the functions flagged for `List::SomeUtils` and `List::MoreUtils` in `ProhibitMutatingListFunctions` are nowadays available in `List::Util`, too. I suppose they should be flagged as well. For example `any`, `all`, `none`.

Enhancement

### Is there an existing issue for this? - [X] I have searched the existing issues ### Community Note * Please vote on this issue by adding a :thumbsup: [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)...

bug

ghodss/yaml is used only in config loading, and the yaml.v3 unmarshaling appears to be a drop-in replacement; the ghodss/yaml feature of reusing `json` struct tags for YAML is not used...

## Proposed change https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp ## Type of change - [ ] Dependency upgrade - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New service (thank you!)...